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)

public static int[] GetWssIdsOfKeywordTerm(
	SPSite site,
	Guid termId,
	int limit
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

The SPSite object that contains the taxonomy hidden list.

termId
Type: System.Guid

A Guid that uniquely identifies the Term.

limit
Type: System.Int32

The 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.

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.

Show: