TaxonomyField.IsAnchorValid Property

Gets a Boolean value that specifies whether the Term object identified by the T:Microsoft.SharePoint.Taxonomy.TaxonomyField.AnchorId property is valid.

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

public bool IsAnchorValid { get; }

Property Value

Type: System.Boolean
true if the Term identified by the AnchorId property is valid; otherwise, false

This property always returns true if the TaxonomyField points to the Enterprise Keywords TermSet, or if the TaxonomyField points to the entire TermSet (i.e., if the AnchorId property returns Empty).