Queries an interface on the object.

Namespace: BlueCieloECM.InnoCielo.Meridian
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)

Syntax

C#
public static T QueryInterface<T>(
	Object anObject
)
where T : class
Visual Basic
Public Shared Function QueryInterface(Of T As Class) ( _
	anObject As Object _
) As T
Visual C++
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.

Type Parameters

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.

See Also