Compartir a través de


del método TaxonomyField.ValidateAndParseValue

Parses the field value and returns a validated object.

Espacio de nombres:  Microsoft.SharePoint.Taxonomy
Ensamblado:  Microsoft.SharePoint.Taxonomy (en Microsoft.SharePoint.Taxonomy.dll)

Sintaxis

'Declaración
Public Overrides Function ValidateAndParseValue ( _
    item As SPListItem, _
    value As String _
) As Object
'Uso
Dim instance As TaxonomyField
Dim item As SPListItem
Dim value As String
Dim returnValue As Object

returnValue = instance.ValidateAndParseValue(item, _
    value)
public override Object ValidateAndParseValue(
    SPListItem item,
    string value
)

Parámetros

Valor devuelto

Tipo: System.Object
A parsed and validated TaxonomyFieldValue or TaxonomyFieldValueCollection object.

Comentarios

This method is called by the client-side rendering framework when a field value needs to be updated.

A TaxonomyField is unique because it requires its value to be set using TaxonomyField.SetFieldValue method, instead of the more direct way of setting SPListItem["fieldName"]=value. Since the caller has no knowledge of this requirement, this method automatically calls the TaxonomyField.SetFieldValue method. You need to be aware that this method does more than just validate and parse the field value, but only for TaxonomyField objects.

Vea también

Referencia

clase TaxonomyField

Miembros TaxonomyField

Espacio de nombres Microsoft.SharePoint.Taxonomy