ComDefaultInterfaceAttribute(Type) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化該類別的新實例 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 型別必須對 COM 可見。