Share via


ServerContext.Current property

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);

See also

Reference

ServerContext class

ServerContext members

Microsoft.Office.Server namespace