IRepositoryTryGetT Method |
Retrieves an object with a specific business object interface.
Namespace:
PDTec.IceNet.Core.Model
Assembly:
PDTec.IceNet.Core (in PDTec.IceNet.Core.dll) Version: 7.0.0.0 (7.0.6906.26599)
Syntaxbool TryGet<T>(
string id,
out T pObject
)
where T : IObject
Parameters
- id
- Type: SystemString
The object ID. - pObject
- Type: T
The business object.
Type Parameters
- T
- The type of the requested interface.
Return Value
Type:
Booleantrue if the repository contains an object
with this ID and the objects implements the interface
T; otherwise,
false.
See Also