Click or drag to resize

IObjectTryCastT Method

Casts to a Business Object interface.

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#
bool TryCast<T>(
	out T pBusinessObject
)
where T : class, IObject

Parameters

pBusinessObject
Type: T
A reference to the Business Object interface if available, null if not.

Type Parameters

T
The type of interface to be casted to.

Return Value

Type: Boolean
true if the Business Object interface is available, false if not.
Remarks
In order to cast to a Business Object interface, several prerequisites must be fulfilled: 1. The Business Object implementation assembly must be made available to the platform (via RequestImplAssemblies event) 2. The implementation must be connected to the object's type (or any supertype) by correctly declaring the ObjectImpl Attribute on the BO Factory
See Also