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