This topic has not yet been rated - Rate this topic

TaxonomyFieldValue.ToString Method

SharePoint 2010

Returns a formatted string representing the TaxonomyFieldValue object.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public override string ToString()

Return Value

Type: System.String
A string that represents the TaxonomyFieldValue object.

The returned string consists of a label and term GUID delimited by a | character: [LABEL|GUID].[LABEL] is the default Label object of the Term object that is referenced by the TaxonomyField object. [GUID] is the unique identifier of the Term.

The delimiter string [|] is defined by the TaxonomyGuidLabelDelimiter property.

If the TaxonomyFieldValue object does not have a value assigned, the method will return an empty string.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ