Export (0) Print
Expand All

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)

'Declaration
PublicReadOnlyPropertyIsAnchorValidAsBooleanGet
'Usage
DiminstanceAsTaxonomyFieldDimvalueAsBooleanvalue = instance.IsAnchorValid

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).

Community Additions

Show:
© 2014 Microsoft