| FactCollectionAddOrUpdateT Method (String, FuncT, FuncString, T) |
Adds new or updates existing fact value.
Namespace: Dynamicweb.Content.Social.MetricsAssembly: Dynamicweb (in Dynamicweb.dll) Version: 9.6.0
Syntax public void AddOrUpdate<T>(
string name,
Func<T> addValueFactory,
Func<string, T> updateValueFactory
)
Public Sub AddOrUpdate(Of T) (
name As String,
addValueFactory As Func(Of T),
updateValueFactory As Func(Of String, T)
)
Parameters
- name
- Type: SystemString
Fact name. - addValueFactory
- Type: SystemFuncT
Add value factory. - updateValueFactory
- Type: SystemFuncString, T
Update value factory.
Type Parameters
- T
- Value type.
Remarks See Also