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