Syntax
| C# |
|---|
public abstract class ViewComponent |
The type exposes the following members.
Protected Constructors
| Name | Description | |
|---|---|---|
| ViewComponentViewComponentNew |
Public Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Init |
Invoked by the framework.
| |
| Initialize |
Called by the framework once the component instance
is initialized
| |
| Render |
Called by the framework so the component can
render its content
| |
| SupportsSection |
Implementor should return true only if the
name is a known section the view component
supports.
| |
| ToString | (Inherited from Object.) |
Protected Methods
| Name | Description | |
|---|---|---|
| CancelView |
Cancels the view processing.
| |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| HasSection |
Determines whether the current component declaration on the view
has the specified section.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| RenderBody | Overloaded. | |
| RenderSection | Overloaded. | |
| RenderSharedView |
Specifies the shared view to be processed after the component has finished its
processing. (A partial view shared
by others views and usually in the root folder
of the view directory).
| |
| RenderText |
Renders the specified content back to the browser
| |
| RenderView | Overloaded. |
Public Properties
| Name | Description | |
|---|---|---|
| Context |
Gets the Component Context
|
Protected Properties
| Name | Description | |
|---|---|---|
| ComponentParams |
Gets the component parameters
| |
| Flash |
Gets a dictionary of volative items.
Ideal for showing success and failures messages.
| |
| HttpContext |
Gets the web context of ASP.NET API.
| |
| Params |
Shortcut to Request.Params
| |
| PropertyBag |
Provides a way to make data available
to the view that the component uses
| |
| RailsContext |
Gets the IRailsEngineContext
associated with the current request
| |
| Request |
Gets the request object.
| |
| Response |
Gets the response object.
| |
| Session |
Gets the Session dictionary.
|
See Also
Castle.MonoRail.Framework Namespace