Click or drag to resize

IRepositoryGetByKeyT Method

Retrieves an object with a specific business object interface identified by its key.

Namespace:  PDTec.IceNet.Core.Model
Assembly:  PDTec.IceNet.Core (in PDTec.IceNet.Core.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
T GetByKey<T>(
	string key
)
where T : class, IObject

Parameters

key
Type: SystemString
A key of the object.

Type Parameters

T
The type of the requested interface.

Return Value

Type: T
The business object identified by the key or null if no object with the key exists or the object does not implement the requested interface.
Exceptions
ExceptionCondition
ModelExceptionThrown when the requested object does not exist.
IceNetRuntimeExceptionThrown when the object does not implement the requested interface.
See Also