ProjectItemDefinition.SetMetadataValue(String, String) Method

Definition

Sets a new metadata value on the ItemDefinition.

C#
public Microsoft.Build.Evaluation.ProjectMetadata SetMetadataValue(string name, string unevaluatedValue);

Parameters

name
String

The name of the metadata to set.

unevaluatedValue
String

The new unevaluated value of the metadata.

Returns

The metadata with the given name.

Remarks

Unevaluated value is assumed to be escaped as necessary

Applies to

Produit Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17