Share via


ServerContext.GetContext method (HttpContext)

Gets the ServerContext instance for the specified HttpContext.

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

Syntax

'Declaration
Public Shared Function GetContext ( _
    httpContext As HttpContext _
) As ServerContext
'Usage
Dim httpContext As HttpContext
Dim returnValue As ServerContext

returnValue = ServerContext.GetContext(httpContext)
public static ServerContext GetContext(
    HttpContext httpContext
)

Parameters

Return value

Type: Microsoft.Office.Server.ServerContext
A ServerContext instance.

See also

Reference

ServerContext class

ServerContext members

GetContext overload

Microsoft.Office.Server namespace