WebPageBase Class
Serves as the base class for classes that represent an ASP.NET Razor page.
Inheritance Hierarchy
System.Object
System.Web.WebPages.WebPageExecutingBase
System.Web.WebPages.WebPageRenderingBase
System.Web.WebPages.WebPageBase
System.Web.WebPages.WebPage
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public MustInherit Class WebPageBase _
Inherits WebPageRenderingBase
'Usage
Dim instance As WebPageBase
public abstract class WebPageBase : WebPageRenderingBase
public ref class WebPageBase abstract : public WebPageRenderingBase
[<AbstractClassAttribute>]
type WebPageBase =
class
inherit WebPageRenderingBase
end
public abstract class WebPageBase extends WebPageRenderingBase
The WebPageBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WebPageBase | Initializes the WebPageBase class for use by an inherited class instance. This constructor can only be called by an inherited class. |
Top
Properties
Name | Description | |
---|---|---|
App | (Inherited from WebPageExecutingBase.) | |
AppState | (Inherited from WebPageExecutingBase.) | |
Cache | (Inherited from WebPageRenderingBase.) | |
Context | When overridden in a derived class, gets or sets the HttpContextBase object that is associated with a page. (Inherited from WebPageExecutingBase.) | |
Culture | (Inherited from WebPageRenderingBase.) | |
DisplayMode | (Inherited from WebPageRenderingBase.) | |
IsAjax | (Inherited from WebPageRenderingBase.) | |
IsPost | (Inherited from WebPageRenderingBase.) | |
Layout | Gets or sets the path of a layout page. (Overrides WebPageRenderingBase.Layout.) | |
Output | Gets the current TextWriter object for the page. | |
OutputStack | Gets the stack of TextWriter objects for the current page context. | |
Page | Provides property-like access to page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.Page.) | |
PageContext | (Inherited from WebPageRenderingBase.) | |
PageData | Provides array-like access to page data that is shared between pages, layout pages, and partial pages. (Overrides WebPageRenderingBase.PageData.) | |
Profile | (Inherited from WebPageRenderingBase.) | |
Request | (Inherited from WebPageRenderingBase.) | |
Response | (Inherited from WebPageRenderingBase.) | |
Server | (Inherited from WebPageRenderingBase.) | |
Session | (Inherited from WebPageRenderingBase.) | |
TemplateInfo | (Inherited from WebPageRenderingBase.) | |
UICulture | (Inherited from WebPageRenderingBase.) | |
UrlData | (Inherited from WebPageRenderingBase.) | |
User | (Inherited from WebPageRenderingBase.) | |
VirtualPath | (Inherited from WebPageExecutingBase.) | |
VirtualPathFactory | (Inherited from WebPageExecutingBase.) |
Top
Methods
Name | Description | |
---|---|---|
BeginContext(Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
BeginContext(TextWriter, Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
BeginContext(String, Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
BeginContext(TextWriter, String, Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
ConfigurePage | When overridden in a derived class, configures the current web page based on the configuration of the parent web page. | |
CreateInstanceFromVirtualPath | Creates a new instance of the WebPageBase class by using the specified virtual path. | |
CreatePageFromVirtualPath | Attempts to create a WebPageBase instance from a virtualPath and wraps complex compiler exceptions with simpler messages | |
DefineSection | Called by content pages to create named content sections. | |
EndContext(Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
EndContext(TextWriter, Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
EndContext(String, Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
EndContext(TextWriter, String, Int32, Int32, Boolean) | (Inherited from WebPageExecutingBase.) | |
Equals | (Inherited from Object.) | |
Execute | (Inherited from WebPageExecutingBase.) | |
ExecutePageHierarchy() | Executes the code in a set of dependent web pages. (Overrides WebPageRenderingBase.ExecutePageHierarchy().) | |
ExecutePageHierarchy(WebPageContext, TextWriter) | Executes the code in a set of dependent web pages by using the specified parameters. | |
ExecutePageHierarchy(WebPageContext, TextWriter, WebPageRenderingBase) | Executes the code in a set of dependent web pages by using the specified context, writer, and start page. | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetOutputWriter | Returns the text writer instance that is used to render the page. (Overrides WebPageExecutingBase.GetOutputWriter().) | |
GetType | (Inherited from Object.) | |
Href | (Inherited from WebPageExecutingBase.) | |
InitializePage | Initializes the current page. | |
IsSectionDefined | Returns a value that indicates whether the specified section is defined in the page. | |
MemberwiseClone | (Inherited from Object.) | |
NormalizeLayoutPagePath | (Inherited from WebPageExecutingBase.) | |
NormalizePath | (Inherited from WebPageExecutingBase.) | |
PopContext | Returns and removes the context from the top of the OutputStack instance. | |
PushContext | Inserts the specified context at the top of the OutputStack instance. | |
RenderBody | In layout pages, renders the portion of a content page that is not within a named section. | |
RenderPage | Renders the content of one page within another page. (Overrides WebPageRenderingBase.RenderPage(String, Object[]).) | |
RenderSection(String) | In layout pages, renders the content of a named section. | |
RenderSection(String, Boolean) | In layout pages, renders the content of a named section and specifies whether the section is required. | |
ToString | (Inherited from Object.) | |
Write(Object) | Writes the specified object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(Object).) | |
Write(HelperResult) | Writes the specified HelperResult object as an HTML-encoded string. (Overrides WebPageExecutingBase.Write(HelperResult).) | |
WriteAttribute | (Inherited from WebPageExecutingBase.) | |
WriteAttributeTo(TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) | (Inherited from WebPageExecutingBase.) | |
WriteAttributeTo(String, TextWriter, String, PositionTagged<String>, PositionTagged<String>, AttributeValue[]) | (Inherited from WebPageExecutingBase.) | |
WriteLiteral | Writes the specified object without HTML-encoding it first. (Overrides WebPageExecutingBase.WriteLiteral(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.