Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the ServerContext instance for the current request.
Namespace: Microsoft.Office.Server
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Shared ReadOnly Property Current As ServerContext
Get
'Usage
Dim value As ServerContext
value = ServerContext.Current
public static ServerContext Current { get; }
Property Value
Type: Microsoft.Office.Server.ServerContext
A ServerContext instance.
Examples
SearchContext srchContext = SearchContext.GetContext(ServerContext.Current);