TermSet.GetAllTerms Method

Returns a collection containing a flat list of all Term objects in the TermSet object.

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

Syntax

'Declaration
Public Function GetAllTerms As TermCollection
'Usage
Dim instance As TermSet
Dim returnValue As TermCollection

returnValue = instance.GetAllTerms()
public TermCollection GetAllTerms()

Return Value

Type: Microsoft.SharePoint.Taxonomy.TermCollection
A collection containing a flat list of all Term objects in the TermSet

Remarks

Use this method if you need to do bulk operations on all Term objects in a TermSet and you want to avoid walking the hierarchy.There is no specific order to the Term objects in the collection.The collection includes deprecated Term objects.To walk through the Term hierarchy, use the Terms property instead.

See Also

Reference

TermSet Class

TermSet Members

Microsoft.SharePoint.Taxonomy Namespace

Terms