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

WebPageExecutingBase Class

Provides objects and methods that are used to execute and render ASP.NET pages that include Razor syntax.

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

public abstract class WebPageExecutingBase

The WebPageExecutingBase type exposes the following members.

  NameDescription
Protected methodWebPageExecutingBaseInitializes the WebPageExecutingBase class for use by an inherited class instance. This constructor can only be called by an inherited class.
Top

  NameDescription
Public propertyAppGets the application-state data as a DynamicObject object that callers can use to create and access custom application-scoped properties.
Public propertyAppStateGets a reference to global application-state data that can be shared across sessions and requests in an ASP.NET application.
Public propertyContextWhen overridden in a derived class, gets or sets the HttpContextBase object that is associated with a page.
Public propertyVirtualPathGets or sets the virtual path of the page.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodExecuteExecutes the server code in the current web page that is marked using Razor syntax.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNormalizePathReturns a normalized path from the specified path.
Public methodToString (Inherited from Object.)
Public methodWrite(Object)Writes the string representation of the specified object as an HTML-encoded string.
Public methodWrite(HelperResult)Writes the specified HelperResult object as an HTML-encoded string.
Public methodWriteLiteralWrites the specified object without HTML encoding.
Public methodStatic memberWriteLiteralToWrites the specified object to the specified TextWriter instance without HTML encoding.
Public methodStatic memberWriteTo(TextWriter, Object)Writes the specified object as an HTML-encoded string to the specified text writer.
Public methodStatic memberWriteTo(TextWriter, HelperResult)Writes the specified HelperResult object as an HTML-encoded string to the specified text writer.
Top

Notes to Inheritors

When you inherit from the WebPageExecutingBase class, you must override the following members: Execute(), Write(Object), Write(HelperResult), and WriteLiteral(Object).

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