Share via


TaxonomySession.GetTermSets method (String[])

Gets all TermSet objects from all TermStore objects that contain Term objects with matching Label objects for all specified strings.

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

Syntax

'Declaration
Public Function GetTermSets ( _
    requiredTermLabels As String() _
) As TermSetCollection
'Usage
Dim instance As TaxonomySession
Dim requiredTermLabels As String()
Dim returnValue As TermSetCollection

returnValue = instance.GetTermSets(requiredTermLabels)
public TermSetCollection GetTermSets(
    string[] requiredTermLabels
)

Parameters

  • requiredTermLabels
    Type: []

    A list of strings to search.

Return value

Type: Microsoft.SharePoint.Taxonomy.TermSetCollection
A collection of TermSet objects.

Remarks

The search results are returned directly from the TermStore object. The TermStore object may not be synchronized with changes that have been made but not committed. For best results, call the CommitAll() method or call the RollbackAll() method before calling this method.

See also

Reference

TaxonomySession class

TaxonomySession members

GetTermSets overload

Microsoft.SharePoint.Taxonomy namespace