Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WebPageContext Class

Contains data that is used by a WebPage object to reference details about the web application, the current HTTP request, the current execution context, and page-rendering data.

System.Object
  System.Web.WebPages.WebPageContext

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

public class WebPageContext

The WebPageContext type exposes the following members.

  NameDescription
Public methodWebPageContext()Initializes a new instance of the WebPageContext class.
Public methodWebPageContext(HttpContextBase, WebPageRenderingBase, Object)Initializes a new instance of the class by using the specified context, page, and model.
Top

  NameDescription
Public propertyStatic memberCurrentGets a reference to the current WebPageContext object that is associated with a page.
Public propertyModelGets the model that is associated with a page.
Public propertyPageGets the WebPageRenderingBase object that is associated with a page.
Public propertyPageDataGets the page data that is shared between pages, layout pages, and partial pages.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft