| UtilsQueryInterfaceT Method (Object, Boolean) |
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)
Syntaxpublic static T QueryInterface<T>(
Object anObject,
bool throwIfNotSupported
)
where T : class
Public Shared Function QueryInterface(Of T As Class) (
anObject As Object,
throwIfNotSupported As Boolean
) As T
public:
generic<typename T>
where T : ref class
static T QueryInterface(
Object^ anObject,
bool throwIfNotSupported
)
static member QueryInterface :
anObject : Object *
throwIfNotSupported : bool -> 'T when 'T : not struct
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