Udostępnij za pośrednictwem


ProjectItem.GetMetadata(String) Method

Definition

Gets an evaluated metadata on this item. Potentially includes a metadata from an item definition. Does not return built-in metadata, such as "FullPath". Returns null if not found.

public:
 Microsoft::Build::Evaluation::ProjectMetadata ^ GetMetadata(System::String ^ name);
public Microsoft.Build.Evaluation.ProjectMetadata GetMetadata (string name);
member this.GetMetadata : string -> Microsoft.Build.Evaluation.ProjectMetadata
Public Function GetMetadata (name As String) As ProjectMetadata

Parameters

name
String

The name of the metadata whose value is retrieved.

Returns

The evaluated value of the given metadata for this item, or null if no metadata exists with the given name.

Remarks

May include metadata from an item definition. Does not include built-in metadata, such as "FullPath".

Applies to