Queries an interface on the object.
Namespace: BlueCieloECM.InnoCielo.MeridianAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.53.0)
public static T QueryInterface<T>(
Object anObject
)
where T : class
public static T QueryInterface<T>(
Object anObject
)
where T : class
Public Shared Function QueryInterface(Of T As Class) ( _
anObject As Object _
) As T
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
)
public:
generic<typename T>
where T : ref class
static T QueryInterface(
Object^ anObject
)
Parameters
- anObject
- Type:
System Object
The object to query the interface on.
- T
- The interface to query.
Return Value
The object casted to the interface.
If the interface is not supported by the object then the
NotSupportedException exception is thrown.