Share via


BuildItem.GetEvaluatedMetadata(String) Method

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Retrieves an arbitrary metadata from the item element, expands any property and item references within it, and unescapes it.

public:
 System::String ^ GetEvaluatedMetadata(System::String ^ metadataName);
public string GetEvaluatedMetadata (string metadataName);
member this.GetEvaluatedMetadata : string -> string
Public Function GetEvaluatedMetadata (metadataName As String) As String

Parameters

metadataName
String

The name of the attribute to retrieve.

Returns

The evaluated value of the requested attribute.

Exceptions

Thrown when the requested attribute is not applicable to the item.

Remarks

Custom attributes on virtual items are not evaluated.

Applies to