ComSourceInterfacesAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ComSourceInterfacesAttribute class.
Overloads
ComSourceInterfacesAttribute(String) |
Initializes a new instance of the ComSourceInterfacesAttribute class with the name of the event source interface. |
ComSourceInterfacesAttribute(Type) |
Initializes a new instance of the ComSourceInterfacesAttribute class with the type to use as a source interface. |
ComSourceInterfacesAttribute(Type, Type) |
Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces. |
ComSourceInterfacesAttribute(Type, Type, Type) |
Initializes a new instance of the |
ComSourceInterfacesAttribute(Type, Type, Type, Type) |
Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces. |
ComSourceInterfacesAttribute(String)
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)
Parameters
- sourceInterfaces
- String
A null-delimited list of fully qualified event source interface names.
Remarks
Use this constructor to expose more than four event source interfaces to COM clients.
Applies to
ComSourceInterfacesAttribute(Type)
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)
Parameters
Remarks
Use this constructor to expose a single event source interface to COM clients.
Applies to
ComSourceInterfacesAttribute(Type, Type)
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)
Parameters
Remarks
Use this constructor to expose two event source interfaces to COM clients.
Applies to
ComSourceInterfacesAttribute(Type, Type, Type)
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)
Parameters
Remarks
Use this constructor to expose three event source interfaces to COM clients.
Applies to
ComSourceInterfacesAttribute(Type, Type, Type, Type)
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)
Parameters
Remarks
Use this constructor to expose four event source interfaces to COM clients.