TaxonomyClientService.GetTermsByLabel method

Gets Term objects that match the search label.

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


<WebMethodAttribute> _
Public Function GetTermsByLabel ( _
    label As String, _
    lcid As Integer, _
    matchOption As StringMatchOption, _
    resultCollectionSize As Integer, _
    termIds As String, _
    addIfNotFound As Boolean _
) As String
Dim instance As TaxonomyClientService
Dim label As String
Dim lcid As Integer
Dim matchOption As StringMatchOption
Dim resultCollectionSize As Integer
Dim termIds As String
Dim addIfNotFound As Boolean
Dim returnValue As String

returnValue = instance.GetTermsByLabel(label, _
    lcid, matchOption, resultCollectionSize, _
    termIds, addIfNotFound)
public string GetTermsByLabel(
    string label,
    int lcid,
    StringMatchOption matchOption,
    int resultCollectionSize,
    string termIds,
    bool addIfNotFound


  • lcid
    Type: System.Int32

    LCID of language to make matches against.

  • resultCollectionSize
    Type: System.Int32

    Maximum number of Term objects to be returned.

  • addIfNotFound
    Type: System.Boolean

    If matchOption is ExactMatch and no match is found and this flag is set to true, a new Term will be added to the TermStore object.

Return value

Type: System.String
Terms which match the specified label.


The serialization of the result as well as parameters is fully described in the protocol document MS-EMMWS.

See also


TaxonomyClientService class

TaxonomyClientService members

Microsoft.SharePoint.Taxonomy.WebServices namespace