Udostępnij za pośrednictwem


ProjectItemDefinition.SetMetadataValue(String, String) Method

Definition

Sets a new metadata value on the ItemDefinition.

public:
 Microsoft::Build::Evaluation::ProjectMetadata ^ SetMetadataValue(System::String ^ name, System::String ^ unevaluatedValue);
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

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