Compartilhar via


ComObject.IDynamicInterfaceCastable.IsInterfaceImplemented Método

Definição

Determina se esse objeto pode ser convertido no tipo de interface especificado. Esse método é chamado quando uma instância de classe de implementação é convertida em 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 para gerar uma exceção em vez de retornar false; caso contrário, false.

Retornos

true se esse objeto puder ser convertido para a interface fornecida. Caso contrário, false.

Implementações

Aplica-se a