UtilsQueryInterfaceT Method (Object) |
Queries an interface on the object.
Namespace: BlueCieloECM.InnoCielo.MeridianAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntax public static T QueryInterface<T>(
Object anObject
)
where T : class
Public Shared Function QueryInterface(Of T As Class) (
anObject As Object
) As T
public:
generic<typename T>
where T : ref class
static T QueryInterface(
Object^ anObject
)
static member QueryInterface :
anObject : Object -> 'T when 'T : not struct
Parameters
- anObject
- Type: SystemObject
The object to query the interface on.
Type Parameters
- T
- The interface to query.
Return Value
Type:
T
The object casted to the interface.
If the interface is not supported by the object then the
NotSupportedException exception is thrown.
See Also