TaxonomyField.RenderFieldValueAsJson method

Renders the field value as a serialized JavaScript Object Notation (JSON) string.

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

Syntax

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

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

Parameters

Return value

Type: System.String
The field value in a serialized JSON format of the form (for single-value fields):
{"TermID": "guid", "Label": "label"}
or (for multivalued fields):
[{"TermID": "guid1", "Label": "label1"},
{"TermID": "guid2", "Label": "label2"}, ...]

Remarks

The client-side rendering (CSR) framework calls the TaxonomyField.RenderFieldValueAsJson(System.Object) method to get the field value as a JSON object that the framework can serialize and send to the client.

See also

Reference

TaxonomyField class

TaxonomyField members

Microsoft.SharePoint.Taxonomy namespace