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