TaxonomyField.GetFieldValueAsHtml(Object) TaxonomyField.GetFieldValueAsHtml(Object) TaxonomyField.GetFieldValueAsHtml(Object) Method

Definition

Returns the field value in HTML format in order to render the field valuedirectly on a page.

public:
 override System::String ^ GetFieldValueAsHtml(System::Object ^ value);
[Microsoft.SharePoint.Client.ClientCallable(ClientLibraryTargets=Microsoft.SharePoint.Client.ClientLibraryTargets.NonRESTful)]
public override string GetFieldValueAsHtml (object value);
Public Overrides Function GetFieldValueAsHtml (value As Object) As String
Parameters
value
Object Object Object

An object of type TaxonomyFieldValueor TaxonomyFieldValueCollection that represents the value to convert.

Returns

A string that contains the value in HTML format.

Remarks

If the AllowMultipleValues property of the TaxonomyField object is false, the value parameter is expected to be of type TaxonomyFieldValue or SPFieldLookupValue or have an accurate string representation returned by the ToString method.

If the AllowMultipleValues property of the TaxonomyField object is true, the value parameter is expected to be of type TaxonomyFieldValueCollection or SPFieldLookupValueCollection or have an accurate string representation returned by the ToString method. The HTML returned by this method will contain each value in the collection separated by a semi-colon character.

If the value parameter is a SPFieldLookupValue object or SPFieldLookupValueCollection object, the returned string will be HTML encoded.

If the value parameter is a null reference (Nothing in Visual Basic), an empty string is returned.

Applies to