ITaskItem2.SetMetadataValueLiteral(String, String) Method

Definition

Allows a piece of custom metadata to be set on the item. Assumes that the value passed in is unescaped, and escapes the value as necessary in order to maintain its value.

C#
public void SetMetadataValueLiteral(string metadataName, string metadataValue);

Parameters

metadataName
String

The metadata name.

metadataValue
String

The metadata value.

Remarks

Taking the opportunity to fix the property name, although this doesn't make it obvious it's an improvement on SetMetadata.

Applies to

Ürün Sürümler
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1