TaxonomyClientService.GetTermSets Method
Gets a TermSet object and all its Term objects if the client TimeStamp is older than the server TimeStamp on the TermSet object, or if the client version is older than the server version
Namespace: Microsoft.SharePoint.Taxonomy.WebServices
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function GetTermSets ( _
sharedServiceIds As String, _
termSetIds As String, _
lcid As Integer, _
clientTimeStamps As String, _
clientVersions As String, _
<OutAttribute> ByRef serverTermSetTimeStampXml As String _
) As String
'Usage
Dim instance As TaxonomyClientService
Dim sharedServiceIds As String
Dim termSetIds As String
Dim lcid As Integer
Dim clientTimeStamps As String
Dim clientVersions As String
Dim serverTermSetTimeStampXml As String
Dim returnValue As String
returnValue = instance.GetTermSets(sharedServiceIds, _
termSetIds, lcid, clientTimeStamps, _
clientVersions, serverTermSetTimeStampXml)
[WebMethodAttribute]
public string GetTermSets(
string sharedServiceIds,
string termSetIds,
int lcid,
string clientTimeStamps,
string clientVersions,
out string serverTermSetTimeStampXml
)
Parameters
sharedServiceIds
Type: System.StringCollection of TermStore IDs that TermSets belong to.
- termSetIds
Type: System.String
lcid
Type: System.Int32LCID of language that labels will be returned in.
clientTimeStamps
Type: System.StringCollection of TimeStamps which are the last edit time of TermSets stored on the client.
clientVersions
Type: System.StringCollection of versions of the server that each TermSet was downloaded from (always 1 unless the client doesn't have the TermSet, then it is 0).
serverTermSetTimeStampXml
Type: System.StringReturns the collection of TimeStamps of the last edit time of each TermSet.
Return Value
Type: System.String
An XML string which includes the TermSet and all its Term objects. If the client TimeStamp is same as the last edit server timestamp then a placeholder is returned.
Remarks
The serialization of the result as well as parameters is fully described in the protocol document MS-EMMWS.