ComDefaultInterfaceAttribute(Type) 建構函式

定義

使用指定的 ComDefaultInterfaceAttribute 物件做為公開至 COM 的預設介面,初始化 Type 類別的新執行個體。

public:
 ComDefaultInterfaceAttribute(Type ^ defaultInterface);
public ComDefaultInterfaceAttribute (Type defaultInterface);
new System.Runtime.InteropServices.ComDefaultInterfaceAttribute : Type -> System.Runtime.InteropServices.ComDefaultInterfaceAttribute
Public Sub New (defaultInterface As Type)

參數

defaultInterface
Type

Type 值,表示要公開至 COM 的預設介面。

備註

defaultInterface傳遞給建構函式的型別必須對 COM 可見。

適用於