Compartilhar via


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

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

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.

See Also

Reference

TaxonomyField Class

TaxonomyField Members

Microsoft.SharePoint.Taxonomy Namespace

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint