Click or drag to resize

UtilsQueryInterfaceT Method (Object, Boolean)

Queries an interface on the object.

Namespace:  BlueCieloECM.InnoCielo.Meridian
Assembly:  BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.111.0)
Syntax
public static T QueryInterface<T>(
	Object anObject,
	bool throwIfNotSupported
)
where T : class

Parameters

anObject
Type: SystemObject
The object to query the interface on.
throwIfNotSupported
Type: SystemBoolean
A value indicating whether the NotSupportedException exception should be thrown if the object does not support the interface.

Type Parameters

T
The interface to query.

Return Value

Type: T
The object casted to the interface. Or if the interface is not supported by the object and throwIfNotSupported is .
See Also