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