Freigeben über


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

Rückgabewert

Typ: Microsoft.Office.Server.ServerContext
Eine ServerContext -Instanz.

Siehe auch

Referenz

ServerContext Klasse

ServerContext-Member

GetContext-Überladung

Microsoft.Office.Server-Namespace