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 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
- httpContext
Type: System.Web.HttpContext
A System.Web.HttpContext instance.
Return Value
Type: Microsoft.Office.Server.ServerContext
A ServerContext instance.