ProjectItemDefinition.SetMetadataValue(String, String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a new metadata value on the ItemDefinition.
public:
Microsoft::Build::Evaluation::ProjectMetadata ^ SetMetadataValue(System::String ^ name, System::String ^ unevaluatedValue);
C#
public Microsoft.Build.Evaluation.ProjectMetadata SetMetadataValue(string name, string unevaluatedValue);
member this.SetMetadataValue : string * string -> Microsoft.Build.Evaluation.ProjectMetadata
Public Function SetMetadataValue (name As String, unevaluatedValue As String) As ProjectMetadata
- name
- String
The name of the metadata to set.
- unevaluatedValue
- String
The new unevaluated value of the metadata.
The metadata with the given name.
Unevaluated value is assumed to be escaped as necessary
Produit | Versions |
---|---|
MSBuild | 15, 16, 17 |
MSBuild (.NET Core) | 15, 16, 17 |