Share via


SearchContext.Current property

NOTE: This API is now obsolete.

Gets the SearchContext instance for the current request.

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

Syntax

'Declaration
<ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")> _
Public Shared ReadOnly Property Current As SearchContext
    Get
'Usage
Dim value As SearchContext

value = SearchContext.Current
[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public static SearchContext Current { get; }

Property value

Type: Microsoft.Office.Server.Search.Administration.SearchContext
A SearchContext object representing the instance for the current request.

See also

Reference

SearchContext class

SearchContext members

Microsoft.Office.Server.Search.Administration namespace