Partager via


ServerContext.GetContext - Méthode (SPWebApplication)

Obtient l'instance de ServerContext pour l'application Web spécifiée.

Espace de noms :  Microsoft.Office.Server
Assembly :  Microsoft.Office.Server (dans Microsoft.Office.Server.dll)

Syntaxe

'Déclaration
Public Shared Function GetContext ( _
    webApplication As SPWebApplication _
) As ServerContext
'Utilisation
Dim webApplication As SPWebApplication
Dim returnValue As ServerContext

returnValue = ServerContext.GetContext(webApplication)
public static ServerContext GetContext(
    SPWebApplication webApplication
)

Paramètres

Valeur renvoyée

Type : Microsoft.Office.Server.ServerContext
Une instance de ServerContext .

Voir aussi

Référence

ServerContext classe

ServerContext - Membres

GetContext - Surcharge

Microsoft.Office.Server - Espace de noms