Click or drag to resize
FactCollectionAddOrUpdateT Method (String, FuncT, FuncString, T)
Adds new or updates existing fact value.

Namespace: Dynamicweb.Content.Social.Metrics
Assembly: Dynamicweb (in Dynamicweb.dll) Version: 9.6.0
Syntax
public void AddOrUpdate<T>(
	string name,
	Func<T> addValueFactory,
	Func<string, T> updateValueFactory
)

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