ComSourceInterfacesAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ComSourceInterfacesAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ComSourceInterfacesAttribute(String) |
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並以事件來源介面的名稱。 |
| ComSourceInterfacesAttribute(Type) |
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並以用作原始碼介面的型別。 |
| ComSourceInterfacesAttribute(Type, Type) |
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。 |
| ComSourceInterfacesAttribute(Type, Type, Type) |
初始化一個新的類別實例 |
| ComSourceInterfacesAttribute(Type, Type, Type, Type) |
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。 |
ComSourceInterfacesAttribute(String)
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並以事件來源介面的名稱。
public:
ComSourceInterfacesAttribute(System::String ^ sourceInterfaces);
public ComSourceInterfacesAttribute(string sourceInterfaces);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : string -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterfaces As String)
參數
- sourceInterfaces
- String
一個完全限定事件來源介面名稱的空分隔清單。
備註
使用此建構器向 COM 用戶端暴露超過四個事件源介面。
適用於
ComSourceInterfacesAttribute(Type)
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並以用作原始碼介面的型別。
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface);
public ComSourceInterfacesAttribute(Type sourceInterface);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface As Type)
參數
備註
使用此建構函式向 COM 用戶端暴露單一事件來源介面。
適用於
ComSourceInterfacesAttribute(Type, Type)
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface1, Type ^ sourceInterface2);
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type * Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface1 As Type, sourceInterface2 As Type)
參數
備註
使用此建構器向 COM 用戶端暴露兩個事件源介面。
適用於
ComSourceInterfacesAttribute(Type, Type, Type)
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface1, Type ^ sourceInterface2, Type ^ sourceInterface3);
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type * Type * Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface1 As Type, sourceInterface2 As Type, sourceInterface3 As Type)
參數
備註
使用此建構子向 COM 用戶端暴露三個事件來源介面。
適用於
ComSourceInterfacesAttribute(Type, Type, Type, Type)
初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。
public:
ComSourceInterfacesAttribute(Type ^ sourceInterface1, Type ^ sourceInterface2, Type ^ sourceInterface3, Type ^ sourceInterface4);
public ComSourceInterfacesAttribute(Type sourceInterface1, Type sourceInterface2, Type sourceInterface3, Type sourceInterface4);
new System.Runtime.InteropServices.ComSourceInterfacesAttribute : Type * Type * Type * Type -> System.Runtime.InteropServices.ComSourceInterfacesAttribute
Public Sub New (sourceInterface1 As Type, sourceInterface2 As Type, sourceInterface3 As Type, sourceInterface4 As Type)
參數
備註
使用此建構器向 COM 用戶端暴露四個事件來源介面。