SearchContext Class
Assembly: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)
The SearchContext object is the entry point to the Enterprise SearchN.Microsoft.Office.Server.Search.Administration object model. The GetContext method returns the search context for site, server, or SSP that you specify.
Note: |
|---|
If you use the GetContext overload of the SearchContext class to retrieve the search context, we recommend that your code instantiates the SPSite object within a using statement to ensure the object is released once it's no longer needed. The code in the Example section demonstrates how to do this. |
For more information about the SearchContext class and the Enterprise Search Administration object model, see Getting Started with the Enterprise Search Administration Object Model and How to: Return the Search Context for the Search Service Provider.
Note: