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)
Syntax
'Declaration
Public ReadOnly Property IsAnchorValid As Boolean
Get
'Usage
Dim instance As TaxonomyField
Dim value As Boolean
value = instance.IsAnchorValid
public bool IsAnchorValid { get; }
Property Value
Type: System.Boolean
true if the Term identified by the AnchorId property is valid; otherwise, false
Remarks
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).