ISecurityTrimmer.CheckAccess Method
Used to perform custom security trimming of Enterprise Search in Microsoft Office SharePoint Server 2007 results.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Function CheckAccess ( _
documentCrawlUrls As IList(Of String), _
sessionProperties As IDictionary(Of String, Object) _
) As BitArray
'Usage
Dim instance As ISecurityTrimmer
Dim documentCrawlUrls As IList(Of String)
Dim sessionProperties As IDictionary(Of String, Object)
Dim returnValue As BitArray
returnValue = instance.CheckAccess(documentCrawlUrls, _
sessionProperties)
BitArray CheckAccess(
IList<string> documentCrawlUrls,
IDictionary<string, Object> sessionProperties
)
Parameters
- documentCrawlUrls
Type: System.Collections.Generic.IList<String>
The collection of search results URL strings.
- sessionProperties
Type: System.Collections.Generic.IDictionary<String, Object>
The collection of configuration properties registered for the security trimmer.
Return Value
Type: System.Collections.BitArray
A System.Collection.BitArray object representing the results of the CheckAccess method.
Remarks
The CheckAccess method executes each time the Query engine returns search results that match the crawl rule that the custom security trimmer is associated with.
See Also
Reference
Microsoft.Office.Server.Search.Query Namespace
Other Resources
Custom Security Trimming for Enterprise Search Results Overview
Walkthrough: Using a Custom Security Trimmer for Search Results