TaxonomyField.GetWssIdsOfKeywordTerm Method
Gets an array of the list item IDs of all the list items in the taxonomy hidden list where the Enterprise Keywords field contains the specified Term object.
Namespace: Microsoft.SharePoint.Taxonomy
Assembly: Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)
Syntax
'Declaration
Public Shared Function GetWssIdsOfKeywordTerm ( _
site As SPSite, _
termId As Guid, _
limit As Integer _
) As Integer()
'Usage
Dim site As SPSite
Dim termId As Guid
Dim limit As Integer
Dim returnValue As Integer()
returnValue = TaxonomyField.GetWssIdsOfKeywordTerm(site, _
termId, limit)
public static int[] GetWssIdsOfKeywordTerm(
SPSite site,
Guid termId,
int limit
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe SPSite object that contains the taxonomy hidden list.
termId
Type: System.GuidA Guid that uniquely identifies the Term.
limit
Type: System.Int32The maximum number of list item IDs to return
Return Value
Type: []
An array of list item IDs of all the list items in the taxonomy hidden list of the specifiedSPSite that contain the specified keyword.
Remarks
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.