ComDefaultInterfaceAttribute(Type) 建構函式

定義

初始化該類別的新實例 ComDefaultInterfaceAttribute ,並以指定的 Type 物件作為預設介面,暴露給 COM。

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 可見。

適用於