Click or drag to resize

ModelManagerReadT Method (String, FuncString, T)

Reads a single item from the current collection.

Namespace:  Dynamicweb.Analytics.Model
Assembly:  Dynamicweb.Analytics (in Dynamicweb.Analytics.dll) Version: 2.1.4
Syntax
public T Read<T>(
	string itemID,
	Func<string, T> activator
)
where T : ISerializableModel

Parameters

itemID
Type: SystemString
Item identifier.
activator
Type: SystemFuncString, T
A function that produces the new instance of a given structure item when nessesary.

Type Parameters

T
Item type.

Return Value

Type: T
Existing item or null (Nothing in Visual Basic) if the given item cannot be retrieved.
Exceptions
ExceptionCondition
ArgumentNullExceptionitemID or activator is null.
ArgumentExceptionitemID is an empty string.
Remarks