Click or drag to resize
FactCollectionGetOrDefaultT Method (String, T)
Returns the value of the fact with the given name or a specified default value is the given fact cannot be found.

Namespace: Dynamicweb.Content.Social.Metrics
Assembly: Dynamicweb (in Dynamicweb.dll) Version: 9.6.0
Syntax
public T GetOrDefault<T>(
	string name,
	T defaultValue
)

Parameters

name
Type: SystemString
Fact name.
defaultValue
Type: T
Default value.

Type Parameters

T
Value type.

Return Value

Type: T
Fact value.
Remarks