Share via


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.

Inheritance Hierarchy

System.Object
  System.Web.WebPages.WebPageContext

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

Syntax

'Declaration
Public Class WebPageContext
'Usage
Dim instance As WebPageContext
public class WebPageContext
public ref class WebPageContext
type WebPageContext =  class end
public class WebPageContext

The WebPageContext type exposes the following members.

Constructors

  Name Description
Public method WebPageContext() Initializes a new instance of the WebPageContext class.
Public method WebPageContext(HttpContextBase, WebPageRenderingBase, Object) Initializes a new instance of the class by using the specified context, page, and model.

Top

Properties

  Name Description
Public propertyStatic member Current Gets a reference to the current WebPageContext object that is associated with a page.
Public property Model Gets the model that is associated with a page.
Public property Page Gets the WebPageRenderingBase object that is associated with a page.
Public property PageData Gets the page data that is shared between pages, layout pages, and partial pages.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

System.Web.WebPages Namespace