ImportManyAttribute 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 ImportManyAttribute class.
Overloads
ImportManyAttribute() |
Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the default contract name. |
ImportManyAttribute(String) |
Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name. |
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) |
Initializes a new instance of the ImportManyAttribute class, importing the set of exports with the specified contract name and contract type. |
ImportManyAttribute()
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
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.
Applies to
ImportManyAttribute(String)
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
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);
public ImportManyAttribute (string contractName);
new System.ComponentModel.Composition.ImportManyAttribute : string -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractName As String)
Parameters
- contractName
- 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.
Applies to
ImportManyAttribute(Type)
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
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);
public ImportManyAttribute (Type contractType);
new System.ComponentModel.Composition.ImportManyAttribute : Type -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractType As Type)
Parameters
- contractType
- 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.
Applies to
ImportManyAttribute(String, Type)
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
- Source:
- ImportManyAttribute.cs
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);
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
The contract name of the exports to import, or null
or an empty string ("") to use the default contract name.
- contractType
- Type
The type of the export to import.