Share via


ServerContext.GetContext method (SPWebApplication)

Gets the ServerContext instance for the specified Web application.

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

Syntax

'Declaration
Public Shared Function GetContext ( _
    webApplication As SPWebApplication _
) As ServerContext
'Usage
Dim webApplication As SPWebApplication
Dim returnValue As ServerContext

returnValue = ServerContext.GetContext(webApplication)
public static ServerContext GetContext(
    SPWebApplication webApplication
)

Parameters

Return value

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

See also

Reference

ServerContext class

ServerContext members

GetContext overload

Microsoft.Office.Server namespace