Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImportMetadataConstraintAttribute Class

.NET Framework (current version)
 

Specifies that an import requires certain metadata values.

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

System::Object
System::Attribute
System.Composition::ImportMetadataConstraintAttribute

[AttributeUsageAttribute(AttributeTargets::Property, Inherited = false)]
public ref class ImportMetadataConstraintAttribute sealed : Attribute

NameDescription
System_CAPS_pubmethodImportMetadataConstraintAttribute(String^, Object^)

Initializes a new instance of the ImportMetadataConstraintAttribute class.

NameDescription
System_CAPS_pubpropertyName

Gets or sets the metadata key to match.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

System_CAPS_pubpropertyValue

Gets or sets the metadata value to match.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

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_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:
© 2017 Microsoft