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
value
Type: System.ObjectAn object of type TaxonomyFieldValue orTaxonomyFieldValueCollection that represents the value to convert.
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.