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
- context
Type: System.Web.HttpContext
itemId
Type: System.StringUm inteiro de 32 bits que identifica o item.
listId
Type: System.GuidUm System.Guid que identifica a lista.
web
Type: Microsoft.SharePoint.SPWebSite da Web.
Valor retornado
Type: Microsoft.SharePoint.SPContext
O contexto de SharePoint Foundation .