(SPWebApplication) del método ServerContext.GetContext
Obtiene la instancia de ServerContext para la aplicación Web especificada.
Espacio de nombres: Microsoft.Office.Server
Ensamblado: Microsoft.Office.Server (en Microsoft.Office.Server.dll)
Sintaxis
'Declaración
Public Shared Function GetContext ( _
webApplication As SPWebApplication _
) As ServerContext
'Uso
Dim webApplication As SPWebApplication
Dim returnValue As ServerContext
returnValue = ServerContext.GetContext(webApplication)
public static ServerContext GetContext(
SPWebApplication webApplication
)
Parámetros
webApplication
Tipo: Microsoft.SharePoint.Administration.SPWebApplicationUn objeto Microsoft.SharePoint.Administration.SPWebApplication .
Valor devuelto
Tipo: Microsoft.Office.Server.ServerContext
Una instancia de ServerContext .