SPContext Members
Include Protected Members
Include Inherited Members
Represents the context of an HTTP request in Microsoft SharePoint Foundation.
The SPContext type exposes the following members.
Properties
Name | Description | |
---|---|---|
ContentTypeSetInQueryString | Gets or sets a Boolean value that indicates whether the content type is set in the query string. | |
ContextPageInfo | Gets the information about the current list item for the current request (if there is one). For example, information could include the item ID, if it is a welcome page, or the base permissions of the object. | |
Current | Gets the context of the current HTTP request in Microsoft SharePoint Foundation. | |
FieldControlCacheGetCallback | Gets or sets the delegate to call to check for a cached value in the current Microsoft SharePoint Foundation HTTP context. | |
FieldControlCacheSetCallback | Gets or sets the delegate to call when setting the cached data in the current Microsoft SharePoint Foundation HTTP context. | |
Fields | Gets the fields metadata associated with the item or content type of the Microsoft SharePoint Foundation context. | |
File | Gets the file that is associated with the list item object of the given Microsoft SharePoint Foundation context. | |
FileLevel | Gets the representation of the version of the file or ASP.Net page. | |
FormContext | Gets the form context object for the form-specific Microsoft SharePoint Foundation context. | |
HasDesignTimeContentType | Gets a Boolean value that indicates whether the list item in the current context is associated with a design-time content type. | |
IsDesignTime | Gets a Boolean value that indicates whether the Web request is operating in a design-time configuration. | |
IsPopUI | Gets a value that indicates whether the current request is for a page that represents a pop-up dialog in the user interface (UI). | |
IsRemoteAuthoringTime | Gets a value that represents whether the current request renders for design time. | |
Item | Gets either the SPListItem object that is determined by the given list and item ID, or the SPItem object that is set when the SPContext object is created. | |
ItemId | Gets the ID of the item that is associated with the Microsoft SharePoint Foundation context. | |
ItemIdAsString | Gets or sets a string value for the ID of the list item that is associated with the request context. | |
List | Gets the list that is associated with the Microsoft SharePoint Foundation context. | |
ListId | Gets the GUID of the list that is associated with the Microsoft SharePoint Foundation context. | |
ListItem | Gets the list item associated with the Microsoft SharePoint Foundation context. | |
ListItemDisplayName | Gets or sets the display name for the item that is associated with the current HTTP context of Microsoft SharePoint Foundation. | |
ListItemServerRelativeUrl | Gets or sets the server-relative URL for the list item in the current HTTP context of Microsoft SharePoint Foundation. | |
ListItemVersion | Gets a UInt32 object that represents version number specified by the context. | |
LoadContentTypes | Gets or sets a Boolean value that specifies whether to include content type fields when implementing the Fields property in order to return the fields associated with an item. | |
MobileContext | Gets the mobile context for the Microsoft SharePoint Foundation context. | |
RecurrenceID | Returns the instance ID or exception ID of the Microsoft SharePoint Foundation context, or returns a null reference (Nothing in Visual Basic) if the current context is not associated with an event list item. | |
RegionalSettings | Gets the regional settings object of the current HTTP context in Microsoft SharePoint Foundation. | |
RenderingFromCurrentMetainfo | Gets a value that indicates whether page rendering optimizations are in effect for the current context. | |
RootFolderUrl | Gets the URL of the root folder for the current context. | |
Site | Gets the site collection that is associated with the current Microsoft SharePoint Foundation request context. Used in conjunction with the static Current property. | |
SiteFeatures | Gets the activated site collection features of the Microsoft SharePoint Foundation context. | |
SiteSubscription | Gets the subscription to which this site collection belongs. | |
UseDefaultCachePolicy | Gets or sets a Boolean value that determines whether Microsoft SharePoint Foundation sets the HTTP cache headers on the response for an item fetched from SharePoint Foundation. | |
ViewContext | Gets a view context object that provides information about the current view. | |
Web | Gets the Web site that is associated with the current Microsoft SharePoint Foundation request context. Used in conjunction with the static Current property. | |
WebFeatures | Gets the activated site features of the Microsoft SharePoint Foundation context. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetContext(HttpContext) | Returns the Microsoft SharePoint Foundation context for the specified HTTP context. | |
GetContext(SPWeb) | Returns the Microsoft SharePoint Foundation context for the specified Microsoft SharePoint Foundation Web site. | |
GetContext(HttpContext, SPItem, SPWeb) | Returns the Microsoft SharePoint Foundation context for an item using the specified HTTP context, item, and Web site. | |
GetContext(HttpContext, Int32, Type) | Returns the Microsoft SharePoint Foundation context for an item using the specified HTTP context, item ID, and item type. | |
GetContext(HttpContext, Guid, Guid, SPWeb) | Returns the Microsoft SharePoint Foundation context for a view. | |
GetContext(HttpContext, Int32, Guid, SPWeb) | Returns the Microsoft SharePoint Foundation context for a list item. | |
GetContext(HttpContext, String, Guid, SPWeb) | Returns the Microsoft SharePoint Foundation context for an item using the specified item ID, list ID, and Web site. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetValueFromPageData | Retrieves a field value from the page data. | |
MemberwiseClone | (Inherited from Object.) | |
ResetItem | Forces a retrieval of the data that is associated with the SPItem object, even if the data was retrieved earlier. | |
ToString | (Inherited from Object.) |
Top