Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPContext methods

SPContext methods

The SPContext type exposes the following members.

  Name Description
Public method CacheWeb Caches an SPWeb for the duration of the HTTP request.
Public method ClearCachedWeb Removes a web that has previously been cached for this context.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetCachedWeb Retrieves a web that was cached for this context.
Public method Static member GetContext(HttpContext) Returns the Microsoft SharePoint Foundation context for the specified HTTP context.
Public method Static member GetContext(SPWeb) Returns the Microsoft SharePoint Foundation context for the specified Microsoft SharePoint Foundation Web site.
Public method Static member GetContext(HttpContext, SPItem, SPWeb) Returns the Microsoft SharePoint Foundation context for an item using the specified HTTP context, item, and Web site.
Public method Static 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 method Static member GetContext(HttpContext, Guid, Guid, SPWeb) Returns the Microsoft SharePoint Foundation context for a view.
Public method Static member GetContext(HttpContext, Int32, Guid, SPWeb) Returns the Microsoft SharePoint Foundation context for a list item.
Public method Static 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.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValueFromPageData Retrieves a field value from the page data.
Protected method MemberwiseClone (Inherited from Object.)
Public method ResetItem Forces a retrieval of the data that is associated with the SPItem object, even if the data was retrieved earlier.
Public method SetDesignTimeOnContext Set the current context in design rendering mode
Public method ToString (Inherited from Object.)
Public method Static member UpdateAfterUrlRewrite Updates the context URI of the alternate URL after doing a URL rewrite.
Top
Show:
© 2015 Microsoft