Compartir a través de


del método TaxonomyField.GetValidatedString

Validates the field value object using logic specific to the TaxonomyField object, and returns a serialized string representation of the validated field value object.

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

Sintaxis

'Declaración
Public Overrides Function GetValidatedString ( _
    value As Object _
) As String
'Uso
Dim instance As TaxonomyField
Dim value As Object
Dim returnValue As String

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

Parámetros

Valor devuelto

Tipo: System.String
A string that serializes the value object.

Excepciones

Excepción Condición
SPFieldValidationException

The value parameter contains a TaxonomyFieldValue object with an invalid Term GUID.

Comentarios

If the AllowMultipleValues property of the TaxonomyField object is false, the value parameter is expected to be of type TaxonomyFieldValue.

If the AllowMultipleValues property of the TaxonomyField object is true, the value parameter is expected to be of type TaxonomyFieldValueCollection or SPFieldLookupValueCollection.

Vea también

Referencia

clase TaxonomyField

Miembros TaxonomyField

Espacio de nombres Microsoft.SharePoint.Taxonomy

GetValidatedString

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint