Click or drag to resize

IObjectAsT Method

Note: This API is now obsolete.

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#
[ObsoleteAttribute("Use TryCast<T> instead.")]
T As<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 if available, null 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