TermSetItem.GetTerms method

Gets a paged collection containing the child Term objects of this TermSetItem object

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

Syntax

'Declaration
Public Function GetTerms ( _
    pagingLimit As Integer _
) As TermCollection
'Usage
Dim instance As TermSetItem
Dim pagingLimit As Integer
Dim returnValue As TermCollection

returnValue = instance.GetTerms(pagingLimit)
public TermCollection GetTerms(
    int pagingLimit
)

Parameters

  • pagingLimit
    Type: System.Int32

    The maxium number of items to return in the collection

Return value

Type: Microsoft.SharePoint.Taxonomy.TermCollection
A paged collection containing the child Term instances of this TermSetItem

Exceptions

Exception Condition
ArgumentException

The paging limit must be greater than zero.

Remarks

This method has the same results as Terms except that it returns a collection that supports paging.

Call the CommitAll() method before using a paged collection. The paged collection does not reflect uncommited changes if the collection size is greater than the pagingLimit.

The returned term collection is sorted based on the custom sort order. If there is no custom sort order defined, then it is sorted based on alphabetic order of the WorkingLanguage. property values.

See also

Reference

TermSetItem class

TermSetItem members

Microsoft.SharePoint.Taxonomy namespace

Terms

PagingLimit

MoveNext()