IDynamicInterfaceCastable 介面

定義

用來參與類型轉換失敗的介面。

public interface class IDynamicInterfaceCastable
public interface IDynamicInterfaceCastable
type IDynamicInterfaceCastable = interface
Public Interface IDynamicInterfaceCastable
衍生

備註

實作實值型別時將會忽略。 只有非實值型別可以透過這個介面參與型別轉換失敗。

方法

GetInterfaceImplementation(RuntimeTypeHandle)

在介面分派期間當類別的中繼資料內找不到所指定介面類型時呼叫。

IsInterfaceImplemented(RuntimeTypeHandle, Boolean)

當實作類別執行個體轉換成不包含在類別中繼資料內的介面類型時呼叫。

適用於