ISecurityTrimmer2.CheckAccess method

NOTE: This API is now obsolete.

When implemented in a class, determines whether the user should see the individual Search results.

Namespace:  Microsoft.Office.Server.Search.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<ObsoleteAttribute("This method is deprecated, moved to the ISecurityTrimmerPost interface instead.")> _
Function CheckAccess ( _
    documentCrawlUrls As IList(Of String), _
    sessionProperties As IDictionary(Of String, Object), _
    userIdentity As IIdentity _
) As BitArray
'Usage
Dim instance As ISecurityTrimmer2
Dim documentCrawlUrls As IList(Of String)
Dim sessionProperties As IDictionary(Of String, Object)
Dim userIdentity As IIdentity
Dim returnValue As BitArray

returnValue = instance.CheckAccess(documentCrawlUrls, _
    sessionProperties, userIdentity)
[ObsoleteAttribute("This method is deprecated, moved to the ISecurityTrimmerPost interface instead.")]
BitArray CheckAccess(
    IList<string> documentCrawlUrls,
    IDictionary<string, Object> sessionProperties,
    IIdentity userIdentity
)

Parameters

Return value

Type: System.Collections.BitArray
A bitmask that specifies whether the crawl URL at that location in the documentCrawlUrls parameter should be displayed in the Search results.

Remarks

The bitmask must have one bit for each of the items in the documentCrawlUrls parameter. If the bitmask has a value of 1, the corresponding crawl URL should be displayed in the Search results; otherwise the crawl URL should not be displayed in the Search results.

See also

Reference

ISecurityTrimmer2 interface

ISecurityTrimmer2 members

Microsoft.Office.Server.Search.Query namespace