ImportManyAttribute Class

.NET Framework (current version)
 

Specifies that a property, field, or parameter should be populated with all matching exports by the host container.

Namespace:   System.Composition
Assembly:  System.Composition.AttributedModel (in System.Composition.AttributedModel.dll)

System.Object
System.Attribute
System.Composition.ImportManyAttribute

[AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Parameter, 
	AllowMultiple = false, Inherited = false)]
public class ImportManyAttribute : Attribute

NameDescription
System_CAPS_pubmethodImportManyAttribute()

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

System_CAPS_pubmethodImportManyAttribute(String)

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

NameDescription
System_CAPS_pubpropertyContractName

Gets the contract name of the exports to import.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: