Condividi tramite


ComObject.IDynamicInterfaceCastable.IsInterfaceImplemented Metodo

Definizione

Determina se questo oggetto può essere eseguito il cast nel tipo di interfaccia specificato. Questo metodo viene chiamato quando viene eseguita il cast di un'istanza della classe di implementazione a un tipo di interfaccia non contenuto nei metadati della classe.

 virtual bool System.Runtime.InteropServices.IDynamicInterfaceCastable.IsInterfaceImplemented(RuntimeTypeHandle interfaceType, bool throwIfNotImplemented) = System::Runtime::InteropServices::IDynamicInterfaceCastable::IsInterfaceImplemented;
bool IDynamicInterfaceCastable.IsInterfaceImplemented (RuntimeTypeHandle interfaceType, bool throwIfNotImplemented);
abstract member System.Runtime.InteropServices.IDynamicInterfaceCastable.IsInterfaceImplemented : RuntimeTypeHandle * bool -> bool
override this.System.Runtime.InteropServices.IDynamicInterfaceCastable.IsInterfaceImplemented : RuntimeTypeHandle * bool -> bool
Function IsInterfaceImplemented (interfaceType As RuntimeTypeHandle, throwIfNotImplemented As Boolean) As Boolean Implements IDynamicInterfaceCastable.IsInterfaceImplemented

Parametri

interfaceType
RuntimeTypeHandle

Tipo di interfaccia

throwIfNotImplemented
Boolean

true per generare un'eccezione anziché restituire false; in caso contrario, false.

Restituisce

true se è possibile eseguire il cast di questo oggetto nell'interfaccia specificata; in caso contrario, false.

Implementazioni

Si applica a