Szerkesztés

Megosztás a következőn keresztül:


ComSourceInterfacesAttribute Constructors

Definition

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 class with the types to use as source interfaces.

ComSourceInterfacesAttribute(Type, Type, Type, Type)

Initializes a new instance of the ComSourceInterfacesAttribute class with the types to use as source interfaces.

ComSourceInterfacesAttribute(String)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs

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)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs

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

sourceInterface
Type

The Type of the source interface.

Remarks

Use this constructor to expose a single event source interface to COM clients.

Applies to

ComSourceInterfacesAttribute(Type, Type)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs

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

sourceInterface1
Type

The Type of the default source interface.

sourceInterface2
Type

The Type of a source interface.

Remarks

Use this constructor to expose two event source interfaces to COM clients.

Applies to

ComSourceInterfacesAttribute(Type, Type, Type)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs

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

sourceInterface1
Type

The Type of the default source interface.

sourceInterface2
Type

The Type of a source interface.

sourceInterface3
Type

The Type of a source interface.

Remarks

Use this constructor to expose three event source interfaces to COM clients.

Applies to

ComSourceInterfacesAttribute(Type, Type, Type, Type)

Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs
Source:
ComSourceInterfacesAttribute.cs

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

sourceInterface1
Type

The Type of the default source interface.

sourceInterface2
Type

The Type of a source interface.

sourceInterface3
Type

The Type of a source interface.

sourceInterface4
Type

The Type of a source interface.

Remarks

Use this constructor to expose four event source interfaces to COM clients.

Applies to