TaxonomyFieldValue.ToString Method
Returns a formatted string representing the TaxonomyFieldValue object.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Overrides Function ToString As String
'Usage
Dim instance As TaxonomyFieldValue
Dim returnValue As String
returnValue = instance.ToString()
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public override string ToString()
Return Value
Type: System.String
A string that represents the TaxonomyFieldValue object.
Remarks
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.