ISecurityTrimmer.Initialize Method
Initializes the custom security trimmer.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Sub Initialize ( _
staticProperties As NameValueCollection, _
searchContext As SearchContext _
)
'Usage
Dim instance As ISecurityTrimmer
Dim staticProperties As NameValueCollection
Dim searchContext As SearchContext
instance.Initialize(staticProperties, _
searchContext)
void Initialize(
NameValueCollection staticProperties,
SearchContext searchContext
)
Parameters
- staticProperties
Type: System.Collections.Specialized.NameValueCollection
A System.Collections.Specialized.NameValueCollection object containing the collection of configuration properties for a custom security trimmer.
- searchContext
Type: Microsoft.Office.Server.Search.Administration.SearchContext
A SearchContext object representing a Shared Services Provider's search service
Remarks
The Initialize method executes when the worker process on the Query server starts, and is good for the lifetime of that worker process.
See Also
Reference
Microsoft.Office.Server.Search.Query Namespace
Microsoft.Office.Server.Search.Administration.SearchContext
Other Resources
Custom Security Trimming for Enterprise Search Results Overview
Walkthrough: Using a Custom Security Trimmer for Search Results