ComSourceInterfacesAttribute 建構函式

定義

初始化 ComSourceInterfacesAttribute 類別的新執行個體。

多載

ComSourceInterfacesAttribute(String)

使用事件來源介面的名稱,初始化 ComSourceInterfacesAttribute 類別的新執行個體。

ComSourceInterfacesAttribute(Type)

使用要當做來源介面使用的型別,初始化 ComSourceInterfacesAttribute 類別的新執行個體。

ComSourceInterfacesAttribute(Type, Type)

使用要當做來源介面使用的型別,初始化 ComSourceInterfacesAttribute 類別的新執行個體。

ComSourceInterfacesAttribute(Type, Type, Type)

使用要當做來源介面使用的型別,初始化 ComSourceInterfacesAttribute 類別的新執行個體。

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

完整事件來源介面名稱之以 null 分隔的清單。

備註

使用此建構函式向 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)

參數

sourceInterface
Type

來源介面的 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)

參數

sourceInterface1
Type

預設來源介面的 Type

sourceInterface2
Type

來源介面的 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)

參數

sourceInterface1
Type

預設來源介面的 Type

sourceInterface2
Type

來源介面的 Type

sourceInterface3
Type

來源介面的 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)

參數

sourceInterface1
Type

預設來源介面的 Type

sourceInterface2
Type

來源介面的 Type

sourceInterface3
Type

來源介面的 Type

sourceInterface4
Type

來源介面的 Type

備註

使用此建構函式向 COM 用戶端公開四個事件來源介面。

適用於