Share via


TaxonomyField.GetFieldValueAsText method

Returns a plain text representation of the field value.

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

Syntax

'Declaration
Public Overridable Function GetFieldValueAsText ( _
    value As Object _
) As ClientResult(Of String)
'Usage
Dim instance As TaxonomyField
Dim value As Object
Dim returnValue As ClientResult(Of String)

returnValue = instance.GetFieldValueAsText(value)
public virtual ClientResult<string> GetFieldValueAsText(
    Object value
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
A string that contains the value as plain text.

Exceptions

Exception Condition
ArgumentException

The value parameter was of a type other than TaxonomyFieldValue and TaxonomyFieldValueCollection.

Remarks

If the value parameter is of type TaxonomyFieldValue, this method returns its label.

See also

Reference

TaxonomyField class

TaxonomyField members

Microsoft.SharePoint.Client.Taxonomy namespace

TaxonomyFieldValue

Microsoft.SharePoint.Client.Taxonomy

GetFieldValueAsText

GetFieldValueAsText

Microsoft.SharePoint