Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the Microsoft SharePoint Foundation context for a view.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function GetContext ( _
context As HttpContext, _
viewId As Guid, _
listId As Guid, _
web As SPWeb _
) As SPContext
'Usage
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
)
Parameters
context
Type: System.Web.HttpContextA System.Web.HTTPContext object that encapsulates the HTTP-specific context that is used by the server to process site requests.
viewId
Type: System.GuidA System.Guid that identifies the view.
listId
Type: System.GuidA System.Guid that identifies the list.
web
Type: Microsoft.SharePoint.SPWebThe Web site.
Return Value
Type: Microsoft.SharePoint.SPContext
The SharePoint Foundation context.