Syntax

C#
public abstract class ViewComponent

The type exposes the following members.

Protected Constructors

Public Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
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.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInit
Invoked by the framework.
Public methodInitialize
Called by the framework once the component instance is initialized
Public methodRender
Called by the framework so the component can render its content
Public methodSupportsSection
Implementor should return true only if the name is a known section the view component supports.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Protected Methods

  NameDescription
Protected methodCancelView
Cancels the view processing.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodHasSection
Determines whether the current component declaration on the view has the specified section.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRenderBodyOverloaded.
Protected methodRenderSectionOverloaded.
Protected methodRenderSharedView
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).
Protected methodRenderText
Renders the specified content back to the browser
Protected methodRenderViewOverloaded.

Public Properties

  NameDescription
Public propertyContext
Gets the Component Context

Protected Properties

  NameDescription
Protected propertyComponentParams
Gets the component parameters
Protected propertyFlash
Gets a dictionary of volative items. Ideal for showing success and failures messages.
Protected propertyHttpContext
Gets the web context of ASP.NET API.
Protected propertyParams
Shortcut to Request.Params
Protected propertyPropertyBag
Provides a way to make data available to the view that the component uses
Protected propertyRailsContext
Gets the IRailsEngineContext associated with the current request
Protected propertyRequest
Gets the request object.
Protected propertyResponse
Gets the response object.
Protected propertySession
Gets the Session dictionary.

See Also