Click or drag to resize

IObjectCastT Method

Casts to a Business Object interface. Throws an exception if the Business Object interface is not available for this object.

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 Cast<T>()
where T : class, IObject

Type Parameters

T
The type of interface to be casted to.

Return Value

Type: T
A reference to the Business Object interface.
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 (e.g. 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