ComObject.IDynamicInterfaceCastable.IsInterfaceImplemented Método

Definição

Determina se este objeto pode ser lançado para o tipo de interface especificado. Este método é chamado quando uma instância de classe de implementação é convertida para um tipo de interface que não está contido nos metadados da 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

Parâmetros

interfaceType
RuntimeTypeHandle

O tipo de interface.

throwIfNotImplemented
Boolean

true lançar uma exceção em vez de devolver false; caso contrário, false.

Devoluções

true se este objeto puder ser lançado para a interface dada; caso contrário, false.

Implementações

Aplica-se a