Deila með


ExportAttribute Constructors

Definition

Overloads

ExportAttribute()

Initializes a new instance of the ExportAttribute class, exporting the type or member marked with this attribute under the default contract name.

ExportAttribute(String)

Initializes a new instance of the ExportAttribute class, exporting the type or member marked with this attribute under the specified contract name.

ExportAttribute(Type)

Initializes a new instance of the ExportAttribute class, exporting the type or member marked with this attribute under a contract name derived from the specified type.

ExportAttribute(String, Type)

Initializes a new instance of the ExportAttribute class, exporting the specified type under the specified contract name.

ExportAttribute()

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

Initializes a new instance of the ExportAttribute class, exporting the type or member marked with this attribute under the default contract name.

public:
 ExportAttribute();
public ExportAttribute ();
Public Sub New ()

Remarks

Methods that are marked with this attribute must specify a contract name or a type by using either the ExportAttribute(String) or the ExportAttribute(Type) method.

The contract name is compared by using the Ordinal property to perform a case-sensitive, non-linguistic comparison.

Applies to

ExportAttribute(String)

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

Initializes a new instance of the ExportAttribute class, exporting the type or member marked with this attribute under the specified contract name.

public:
 ExportAttribute(System::String ^ contractName);
public ExportAttribute (string contractName);
new System.Composition.ExportAttribute : string -> System.Composition.ExportAttribute
Public Sub New (contractName As String)

Parameters

contractName
String

The contract name that is used to export the type or member marked with this attribute, or null or an empty string ("") to use the default contract name.

Remarks

Methods that are marked with this attribute must specify a contract name or a type by using either the ExportAttribute(String) or the ExportAttribute(Type) method.

The contract name is compared by using the Ordinal property to perform a case-sensitive, non-linguistic comparison.

Applies to

ExportAttribute(Type)

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

Initializes a new instance of the ExportAttribute class, exporting the type or member marked with this attribute under a contract name derived from the specified type.

public:
 ExportAttribute(Type ^ contractType);
public ExportAttribute (Type contractType);
new System.Composition.ExportAttribute : Type -> System.Composition.ExportAttribute
Public Sub New (contractType As Type)

Parameters

contractType
Type

A type from which to derive the contract name that is used to export the type or member marked with this attribute, or null to use the default contract name.

Remarks

Methods that are marked with this attribute must specify a contract name or a type by using either the ExportAttribute(String) or the ExportAttribute(Type) method.

The contract name is compared by using the Ordinal property to perform a case-sensitive, non-linguistic comparison.

Applies to

ExportAttribute(String, Type)

Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs
Source:
ExportAttribute.cs

Initializes a new instance of the ExportAttribute class, exporting the specified type under the specified contract name.

public:
 ExportAttribute(System::String ^ contractName, Type ^ contractType);
public ExportAttribute (string contractName, Type contractType);
new System.Composition.ExportAttribute : string * Type -> System.Composition.ExportAttribute
Public Sub New (contractName As String, contractType As Type)

Parameters

contractName
String

The contract name that is used to export the type or member marked with this attribute, or null or an empty string ("") to use the default contract name.

contractType
Type

The type to export.

Applies to