SPContext.GetContext Method

Include Protected Members
Include Inherited Members

Returns the Microsoft SharePoint Foundation context for the current HTTP context.

Overload List

  Name Description
Public methodStatic member GetContext(HttpContext) Returns the Microsoft SharePoint Foundation context for the specified HTTP context.
Public methodStatic member GetContext(SPWeb) Returns the Microsoft SharePoint Foundation context for the specified Microsoft SharePoint Foundation Web site.
Public methodStatic member GetContext(HttpContext, SPItem, SPWeb) Returns the Microsoft SharePoint Foundation context for an item using the specified HTTP context, item, and Web site.
Public methodStatic member GetContext(HttpContext, Int32, Type) Returns the Microsoft SharePoint Foundation context for an item using the specified HTTP context, item ID, and item type.
Public methodStatic member GetContext(HttpContext, Guid, Guid, SPWeb) Returns the Microsoft SharePoint Foundation context for a view.
Public methodStatic member GetContext(HttpContext, Int32, Guid, SPWeb) Returns the Microsoft SharePoint Foundation context for a list item.
Public methodStatic member GetContext(HttpContext, String, Guid, SPWeb) Returns the Microsoft SharePoint Foundation context for an item using the specified item ID, list ID, and Web site.

Top

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace