다음을 통해 공유


TaxonomySession.GetTermSets Method (String )

Gets all TermSet objects from all TermStore objects that contain Term objectswith 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 directly from the TermStore object. It 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