Compartilhar via


SPContext.GetContext method (HttpContext, Guid, Guid, SPWeb)

Retorna o contexto de Microsoft SharePoint Foundation para um modo de exibição.

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

Syntax

'Declaração
Public Shared Function GetContext ( _
    context As HttpContext, _
    viewId As Guid, _
    listId As Guid, _
    web As SPWeb _
) As SPContext
'Uso
Dim context As HttpContext
Dim viewId As Guid
Dim listId As Guid
Dim web As SPWeb
Dim returnValue As SPContext

returnValue = SPContext.GetContext(context, _
    viewId, listId, web)
public static SPContext GetContext(
    HttpContext context,
    Guid viewId,
    Guid listId,
    SPWeb web
)

Parâmetros

  • context
    Type: System.Web.HttpContext

    Um objeto System.Web.HTTPContext que encapsula o contexto HTTP específica que é usado pelo servidor para processar solicitações de sites.

  • viewId
    Type: System.Guid

    Um System.Guid que identifica o modo de exibição.

  • listId
    Type: System.Guid

    Um System.Guid que identifica a lista.

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