ViewContext Class

 

Encapsulates information that is related to rendering a view.

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


type ViewContext = 
    class
        inherit ControllerContext
    end

NameDescription
System_CAPS_pubmethodViewContext()

Initializes a new instance of the ViewContext class.

System_CAPS_pubmethodViewContext(ControllerContext, IView, ViewDataDictionary, TempDataDictionary, TextWriter)

Initializes a new instance of the ViewContext class by using the specified controller context, view, view data dictionary, temporary data dictionary, and text writer.

NameDescription
System_CAPS_pubpropertyClientValidationEnabled

Gets or sets a value that indicates whether client-side validation is enabled.

System_CAPS_pubpropertyController

Gets or sets the controller.(Inherited from ControllerContext.)

System_CAPS_pubpropertyDisplayMode

Gets the display mode.(Inherited from ControllerContext.)

System_CAPS_pubpropertyFormContext

Gets or sets an object that encapsulates information that is required in order to validate and process the input data from an HTML form.

System_CAPS_pubpropertyHttpContext

Gets or sets the HTTP context.(Inherited from ControllerContext.)

System_CAPS_pubpropertyIsChildAction

Gets a value that indicates whether the associated action method is a child action.(Inherited from ControllerContext.)

System_CAPS_pubpropertyParentActionViewContext

Gets an object that contains the view context information for the parent action method.(Inherited from ControllerContext.)

System_CAPS_pubpropertyRequestContext

Gets or sets the request context.(Inherited from ControllerContext.)

System_CAPS_pubpropertyRouteData

Gets or sets the URL route data.(Inherited from ControllerContext.)

System_CAPS_pubpropertyTempData

Gets data that is associated with this request and that is available for only one request.

System_CAPS_pubpropertyUnobtrusiveJavaScriptEnabled

Gets or sets a value that indicates whether unobtrusive JavaScript is enabled.

System_CAPS_pubpropertyValidationMessageElement

Element name used to wrap a top-level message generated by ValidationMessage and other overloads.

System_CAPS_pubpropertyValidationSummaryMessageElement

Element name used to wrap a top-level message generated by ValidationSummary and other overloads.

System_CAPS_pubpropertyView

Gets an object that implements the IView interface to render in the browser.

System_CAPS_pubpropertyViewBag

Gets the dynamic view data dictionary.

System_CAPS_pubpropertyViewData

Gets the view data that is passed to the view.

System_CAPS_pubpropertyWriter

Gets or sets the text writer object that is used to write HTML output.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOutputClientValidation()

Writes the client validation information to the HTTP response.

System_CAPS_pubmethodToString()

(Inherited from 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.

Return to top
Show: