共用方式為


ComObject.IDynamicInterfaceCastable.IsInterfaceImplemented 方法

定義

判斷這個物件是否可以轉換成指定的介面類別型。 當實作類別實例轉換成未包含在類別中繼資料中的介面類別型時,就會呼叫這個方法。

 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

參數

interfaceType
RuntimeTypeHandle

介面型別。

throwIfNotImplemented
Boolean

true 表示擲回例外狀況,而不是傳 false 回 ,否則為 false

傳回

若此物件可轉換成指定的介面,則為 true;否則為 false

實作

適用於