Udostępnij za pośrednictwem


ProjectItem.Metadata Property

Definition

Metadata on the item, if any. Includes metadata specified by the definition, if any. If there is no metadata, returns an empty collection. Does not include built-in metadata, such as "FullPath". Get the values of built-in metadata using GetMetadataValue(String). This is a read-only collection. To modify the metadata, use SetMetadataValue(String, String).

public:
 property System::Collections::Generic::ICollection<Microsoft::Build::Evaluation::ProjectMetadata ^> ^ Metadata { System::Collections::Generic::ICollection<Microsoft::Build::Evaluation::ProjectMetadata ^> ^ get(); };
public System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectMetadata> Metadata { get; }
public System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectMetadata> Metadata { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }
member this.Metadata : System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectMetadata>
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Metadata : System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectMetadata>
Public ReadOnly Property Metadata As ICollection(Of ProjectMetadata)

Property Value

All the metadata for this item, including metadata originating from item definitions.

Attributes

Remarks

Does not include built-in metadata, such as "FullPath".

To add, remove, or change the values of built-in metadata, use GetMetadataValue and SetMetadataValue.

Applies to