Share via


TaxonomyWebTaggingControl.Validate method

Checks whether the data in the current TaxonomyWebTaggingControl object is valid and tries to validate it if has not yet been validated.

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

Syntax

'Declaration
Public Function Validate ( _
    <OutAttribute> ByRef reason As String _
) As Boolean
'Usage
Dim instance As TaxonomyWebTaggingControl
Dim reason As String
Dim returnValue As Boolean

returnValue = instance.Validate(reason)
public bool Validate(
    out string reason
)

Parameters

  • reason
    Type: System.String

    The message shown in the UI to the user if the data is not valid

Return value

Type: System.Boolean
true if the data is valid; otherwise, false

Remarks

If Term objects appear that have not been validated on the client, this method tries to validate them. If it can find a single match to a Term, it will apply that Term. If it finds more than one match, it will return false. If it cannot find any matches and the control object is set up to create new Term objects, it will create a new Term. Running the Validate(System.String@) method can change the value of the Text() property.

See also

Reference

TaxonomyWebTaggingControl class

TaxonomyWebTaggingControl members

Microsoft.SharePoint.Taxonomy namespace