Click or drag to resize
IRepositoryTryGetByKeyT 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: 6.0.0.0 (6.0.6225.27214)
Syntax
C#
bool TryGetByKey<T>(
	string key,
	out T pBusinessObject
)
where T : IObject

Parameters

key
Type: SystemString
A key of the object.
pBusinessObject
Type: T
The p business object.

Type Parameters

T
The type of the requested interface

Return Value

Type: Boolean
true if the repository contains an object with this ID and the object implements the requested interface; otherwise, false.
See Also