ComSourceInterfacesAttribute 建構函式

定義

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

多載

名稱 Description
ComSourceInterfacesAttribute(String)

初始化一個新的類別實例 ComSourceInterfacesAttribute ,並以事件來源介面的名稱。

ComSourceInterfacesAttribute(Type)

初始化一個新的類別實例 ComSourceInterfacesAttribute ,並以用作原始碼介面的型別。

ComSourceInterfacesAttribute(Type, Type)

初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。

ComSourceInterfacesAttribute(Type, Type, Type)

初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。

ComSourceInterfacesAttribute(Type, Type, Type, Type)

初始化一個新的類別實例 ComSourceInterfacesAttribute ,並使用用作原始碼介面的型別。

ComSourceInterfacesAttribute(String)

來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs

初始化一個新的類別實例 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.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs

初始化一個新的類別實例 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.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs

初始化一個新的類別實例 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.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs

初始化一個新的類別實例 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.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs
來源:
ComSourceInterfacesAttribute.cs

初始化一個新的類別實例 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 用戶端暴露四個事件來源介面。

適用於