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)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
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)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
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)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
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)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
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)

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

适用于