TaxonomyField.GetFieldValueAsText Method

Returns a plain text representation of the field value.

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

Syntax

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

returnValue = instance.GetFieldValueAsText(value)
public override string GetFieldValueAsText(
    Object value
)

Parameters

Return Value

Type: System.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.Taxonomy Namespace

TaxonomyFieldValue

Microsoft.SharePoint.Taxonomy

GetFieldValueAsText(Object)

GetFieldValueAsText(Object)

Microsoft.SharePoint