Export (0) Print
Expand All

TaxonomyField.GetValidatedString method

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

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

public override string GetValidatedString(
	Object value
)

Parameters

value
Type: System.Object

An object of type TaxonomyFieldValue or TaxonomyFieldValueCollection that represents the value to validate and serialize.

Return value

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

ExceptionCondition
SPFieldValidationException

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

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.

Show:
© 2015 Microsoft