ComSourceInterfacesAttribute 构造函数   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ComSourceInterfacesAttribute 类的新实例。
重载
| ComSourceInterfacesAttribute(String) | 使用事件源接口名称初始化 ComSourceInterfacesAttribute 类的新实例。 | 
| ComSourceInterfacesAttribute(Type) | 使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。 | 
| ComSourceInterfacesAttribute(Type, Type) | 使用要用作源接口的类型初始化 ComSourceInterfacesAttribute 类的新实例。 | 
| ComSourceInterfacesAttribute(Type, Type, Type) | 使用要用作源接口的类型初始化  | 
| 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.ComSourceInterfacesAttributePublic 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.ComSourceInterfacesAttributePublic Sub New (sourceInterface As 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.ComSourceInterfacesAttributePublic Sub New (sourceInterface1 As Type, sourceInterface2 As 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.ComSourceInterfacesAttributePublic Sub New (sourceInterface1 As Type, sourceInterface2 As Type, sourceInterface3 As 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.ComSourceInterfacesAttributePublic Sub New (sourceInterface1 As Type, sourceInterface2 As Type, sourceInterface3 As Type, sourceInterface4 As Type)参数
注解
使用此构造函数向 COM 客户端公开四个事件源接口。