(HttpContext, Guid, Guid, SPWeb) del método SPContext.GetContext
Devuelve el contexto de Microsoft SharePoint Foundation para una vista.
Espacio de nombres: Microsoft.SharePoint
Ensamblado: Microsoft.SharePoint (en Microsoft.SharePoint.dll)
Sintaxis
'Declaración
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
Tipo: System.Web.HttpContextUn objeto System.Web.HTTPContext que encapsula el contexto específico de HTTP que se usa el servidor para procesar las solicitudes de sitios.
viewId
Tipo: System.GuidSystem.Guid que identifica la vista.
listId
Tipo: System.GuidSystem.Guid que identifica la lista.
web
Tipo: Microsoft.SharePoint.SPWebEl sitio Web.
Valor devuelto
Tipo: Microsoft.SharePoint.SPContext
El contexto de SharePoint Foundation .