다음을 통해 공유


SearchContext.GetContext Method (ServerContext)

NOTE: This API is now obsolete.

Gets the search context instance for the ServerContext object.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is deprecated. Use GetContext(SearchServiceApplication app).")> _
Public Shared Function GetContext ( _
    serverContext As ServerContext _
) As SearchContext
'Usage
Dim serverContext As ServerContext
Dim returnValue As SearchContext

returnValue = SearchContext.GetContext(serverContext)
[ObsoleteAttribute("This method is deprecated. Use GetContext(SearchServiceApplication app).")]
public static SearchContext GetContext(
    ServerContext serverContext
)

Parameters

Return Value

Type: Microsoft.Office.Server.Search.Administration.SearchContext
A SearchContext object representing the search context for the Shared Services Provider.

Remarks

For more information about the SearchContext class and the SharePoint Enterprise Search Administration object model, see Getting Started with the Search Administration Object Model and How to: Return the Search Context for the Search Service Provider.

See Also

Reference

SearchContext Class

SearchContext Members

GetContext Overload

Microsoft.Office.Server.Search.Administration Namespace