ComSourceInterfacesAttribute ComSourceInterfacesAttribute ComSourceInterfacesAttribute ComSourceInterfacesAttribute Constructors

定义

重载

ComSourceInterfacesAttribute(String) ComSourceInterfacesAttribute(String) ComSourceInterfacesAttribute(String) ComSourceInterfacesAttribute(String)

使用事件源接口名称初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the name of the event source interface.

ComSourceInterfacesAttribute(Type) ComSourceInterfacesAttribute(Type) ComSourceInterfacesAttribute(Type) ComSourceInterfacesAttribute(Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the type to use as a source interface.

ComSourceInterfacesAttribute(Type, Type) ComSourceInterfacesAttribute(Type, Type) ComSourceInterfacesAttribute(Type, Type) ComSourceInterfacesAttribute(Type, Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.

ComSourceInterfacesAttribute(Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.

ComSourceInterfacesAttribute(Type, Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type, Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.

ComSourceInterfacesAttribute(String) ComSourceInterfacesAttribute(String) ComSourceInterfacesAttribute(String) ComSourceInterfacesAttribute(String)

使用事件源接口名称初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the name of the event source interface.

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 String String String

事件源接口的完全限定名列表,名称之间用 null 分隔。A null-delimited list of fully qualified event source interface names.

注解

使用此构造函数公开四个事件源接口向 COM 客户端。Use this constructor to expose more than four event source interfaces to COM clients.

ComSourceInterfacesAttribute(Type) ComSourceInterfacesAttribute(Type) ComSourceInterfacesAttribute(Type) ComSourceInterfacesAttribute(Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the type to use as a source interface.

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 Type Type

源接口的 TypeThe Type of the source interface.

注解

使用此构造函数来公开单个事件源接口向 COM 客户端。Use this constructor to expose a single event source interface to COM clients.

ComSourceInterfacesAttribute(Type, Type) ComSourceInterfacesAttribute(Type, Type) ComSourceInterfacesAttribute(Type, Type) ComSourceInterfacesAttribute(Type, Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.

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 Type Type

默认源接口的 TypeThe Type of the default source interface.

sourceInterface2
Type Type Type Type

源接口的 TypeThe Type of a source interface.

注解

使用此构造函数公开两个事件源接口向 COM 客户端。Use this constructor to expose two event source interfaces to COM clients.

ComSourceInterfacesAttribute(Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.

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 Type Type

默认源接口的 TypeThe Type of the default source interface.

sourceInterface2
Type Type Type Type

源接口的 TypeThe Type of a source interface.

sourceInterface3
Type Type Type Type

源接口的 TypeThe Type of a source interface.

注解

使用此构造函数公开三个事件源接口向 COM 客户端。Use this constructor to expose three event source interfaces to COM clients.

ComSourceInterfacesAttribute(Type, Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type, Type) ComSourceInterfacesAttribute(Type, Type, Type, Type)

使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.

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 Type Type

默认源接口的 TypeThe Type of the default source interface.

sourceInterface2
Type Type Type Type

源接口的 TypeThe Type of a source interface.

sourceInterface3
Type Type Type Type

源接口的 TypeThe Type of a source interface.

sourceInterface4
Type Type Type Type

源接口的 TypeThe Type of a source interface.

注解

使用此构造函数公开四个事件源接口向 COM 客户端。Use this constructor to expose four event source interfaces to COM clients.

适用于