Label.Value property

Gets the value of the current Label object.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

public string Value { get; set; }

Property value

Type: System.String
Returns String.

ExceptionCondition
UnauthorizedAccessException

The current user has insufficient permissions to perform this operation.

ArgumentException

The value is not valid for a Term Label. The Label can not have more than 255 characters, and cannot contain any invalid characters including: semicolon, double quote, left angle bracket, right angle bracket, ampersand, pipe, and tab.

The current user must have TaxonomyRights.EditTerm permission to set this property. Call the CommitAll() method to save this change to the database.

Show: