del método TaxonomyField.RenderFieldValueAsJson
Renders the field value as a serialized JavaScript Object Notation (JSON) string.
Espacio de nombres: Microsoft.SharePoint.Taxonomy
Ensamblado: Microsoft.SharePoint.Taxonomy (en Microsoft.SharePoint.Taxonomy.dll)
Sintaxis
'Declaración
Public Overrides Function RenderFieldValueAsJson ( _
value As Object _
) As String
'Uso
Dim instance As TaxonomyField
Dim value As Object
Dim returnValue As String
returnValue = instance.RenderFieldValueAsJson(value)
public override string RenderFieldValueAsJson(
Object value
)
Parámetros
- value
Tipo: System.Object
Valor devuelto
Tipo: 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"}, ...]
Comentarios
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.