Compartilhar via


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

Retorna o contexto de Microsoft SharePoint Foundation para um item usando o ID de item especificada, a ID da lista e o site.

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

Syntax

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

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

Parâmetros

  • itemId
    Type: System.String

    Um inteiro de 32 bits que identifica o item.

  • 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