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
webApplication
Type: Microsoft.SharePoint.Administration.SPWebApplicationA Microsoft.SharePoint.Administration.SPWebApplication object.
Return value
Type: Microsoft.Office.Server.ServerContext
A ServerContext instance.