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 客户端公开四个事件源接口。

适用于