Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets an array of the list item IDs for all of the list items in the taxonomy hidden list that contain the specified Term object.
Namespace: Microsoft.SharePoint.Client.Taxonomy
Assemblies: Microsoft.SharePoint.Client.Taxonomy.Silverlight (in Microsoft.SharePoint.Client.Taxonomy.Silverlight.dll); Microsoft.SharePoint.Client.Taxonomy.Phone (in Microsoft.SharePoint.Client.Taxonomy.Phone.dll) Microsoft.SharePoint.Client.Taxonomy (in Microsoft.SharePoint.Client.Taxonomy.dll)
Syntax
'Declaration
Public Shared Function GetWssIdsOfTerm ( _
context As ClientRuntimeContext, _
site As Site, _
termStoreId As Guid, _
termSetId As Guid, _
termId As Guid, _
includeDescendants As Boolean, _
limit As Integer _
) As ClientArrayResult(Of Integer)
'Usage
Dim context As ClientRuntimeContext
Dim site As Site
Dim termStoreId As Guid
Dim termSetId As Guid
Dim termId As Guid
Dim includeDescendants As Boolean
Dim limit As Integer
Dim returnValue As ClientArrayResult(Of Integer)
returnValue = TaxonomyField.GetWssIdsOfTerm(context, _
site, termStoreId, termSetId, termId, _
includeDescendants, limit)
public static ClientArrayResult<int> GetWssIdsOfTerm(
ClientRuntimeContext context,
Site site,
Guid termStoreId,
Guid termSetId,
Guid termId,
bool includeDescendants,
int limit
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
site
Type: Microsoft.SharePoint.Client.SiteThe SPSite object that contains the taxonomy hidden list.
termStoreId
Type: System.GuidA Guid object that uniquely identifies the TermStore object.
termSetId
Type: System.Guid
termId
Type: System.GuidA Guid object that uniquely identifies the Term.
includeDescendants
Type: System.BooleanA Boolean value that must be set to true if you would like the list item Ids of descendant Term objects to also be included in the results.
limit
Type: System.Int32The maximum number of list item IDs to return.
Return value
Type: Microsoft.SharePoint.Client.ClientArrayResult<Int32>
An array of list item IDs of all the list items in the taxonomy hidden list of the specified site that contain the specified Term object.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The includeDescendants parameter must be false on keyword searches (i.e. if the TermSetId parameter is Empty). |
Remarks
If the TermSetId parameter is set to Empty and theincludeDescendendants parameter is set to false, the method will consider theTerm to be an Enterprise Keyword and only search the corresponding field in the taxonomy hidden list.
If the site parameter is a null reference (Nothing in Visual Basic) or the limit parameter is negative, the method will return an empty array.
See also
Reference
Microsoft.SharePoint.Client.Taxonomy namespace