Click or drag to resize

IUserSessionGetT Method


Retrieves an object that implements the IObjectWithId interface by its unique ID, from the content store.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.5.94
Syntax
T Get<T>(
	string id
)

Parameters

id
Type: SystemString
Unique ID of the object to retrieve

Type Parameters

T
Type of the object to retrieve

Return Value

Type: T
Returns the object with matching ID. If object with that ID doesn't exist, or the object's type doesn't match the type parameters, returns null.
See Also