ImportManyAttribute ImportManyAttribute ImportManyAttribute ImportManyAttribute Constructors

Definition

Overloads

ImportManyAttribute() ImportManyAttribute() ImportManyAttribute()

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the default contract name.

ImportManyAttribute(String) ImportManyAttribute(String) ImportManyAttribute(String) ImportManyAttribute(String)

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name.

ImportManyAttribute(Type) ImportManyAttribute(Type) ImportManyAttribute(Type) ImportManyAttribute(Type)

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the contract name derived from the specified type.

ImportManyAttribute(String, Type) ImportManyAttribute(String, Type) ImportManyAttribute(String, Type) ImportManyAttribute(String, Type)

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name and contract type.

ImportManyAttribute() ImportManyAttribute() ImportManyAttribute()

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the default contract name.

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

Remarks

The default contract name is the result of calling the GetContractName method on the type of the property, field, or parameter that is marked with this attribute.

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

ImportManyAttribute(String) ImportManyAttribute(String) ImportManyAttribute(String) ImportManyAttribute(String)

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name.

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

Parameters

contractName
String String String String

The contract name of the exports to import, or null or an empty string ("") to use the default contract name.

Remarks

The default contract name is the result of calling the GetContractName method on the property, field, or parameter type that is marked with this attribute.

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

ImportManyAttribute(Type) ImportManyAttribute(Type) ImportManyAttribute(Type) ImportManyAttribute(Type)

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the contract name derived from the specified type.

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

Parameters

contractType
Type Type Type Type

The type to derive the contract name of the exports to import, or null to use the default contract name.

Remarks

The contract name is the result of calling the GetContractName method on contractType.

The default contract name is the result of calling the GetContractName method on the property, field, or parameter type that is marked with this attribute.

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

ImportManyAttribute(String, Type) ImportManyAttribute(String, Type) ImportManyAttribute(String, Type) ImportManyAttribute(String, Type)

Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name and contract type.

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

Parameters

contractName
String String String String

The contract name of the exports to import, or null or an empty string ("") to use the default contract name.

contractType
Type Type Type Type

The type of the export to import.

Applies to