Compartilhar via


SPContext.GetContext method (SPWeb)

Retorna o contexto de Microsoft SharePoint Foundation para o site especificado Microsoft SharePoint Foundation .

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
Public Shared Function GetContext ( _
    web As SPWeb _
) As SPContext
'Uso
Dim web As SPWeb
Dim returnValue As SPContext

returnValue = SPContext.GetContext(web)
public static SPContext GetContext(
    SPWeb web
)

Parâmetros

Valor retornado

Type: Microsoft.SharePoint.SPContext
O contexto de SharePoint Foundation .

Ver também

Referência

SPContext class

SPContext members

GetContext overload

Microsoft.SharePoint namespace