ServerContext.GetContext-Methode (SPWebApplication)
Ruft die ServerContext -Instanz für die angegebene Webanwendung.
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
)
Parameter
webApplication
Typ: Microsoft.SharePoint.Administration.SPWebApplicationEin Microsoft.SharePoint.Administration.SPWebApplication -Objekt.
Rückgabewert
Typ: Microsoft.Office.Server.ServerContext
Eine ServerContext -Instanz.