ViewUserControl<TModel> ViewUserControl<TModel> ViewUserControl<TModel> Class

Definition

Represents the information that is required in order to build a strongly typed user control.

public class ViewUserControl<TModel> : System.Web.Mvc.ViewUserControl
type ViewUserControl<'Model> = class
    inherit ViewUserControl
Public Class ViewUserControl(Of TModel)
Inherits ViewUserControl

Type Parameters

TModel

The type of the model.

Inheritance
ViewUserControl<TModel>ViewUserControl<TModel>ViewUserControl<TModel>
Derived

Constructors

ViewUserControl<TModel>() ViewUserControl<TModel>() ViewUserControl<TModel>()

Initializes a new instance of the ViewUserControl<TModel> class.

Properties

Ajax Ajax Ajax

Gets the AJAX script for the view.

Html Html Html

Gets the HTML for the view.

Model Model Model

Gets the model.

TempData TempData TempData

Gets the temporary-data dictionary.

(Inherited from ViewUserControl)
Url Url Url

Gets the URL for the view.

(Inherited from ViewUserControl)
ViewBag ViewBag ViewBag

Gets the view bag.

(Inherited from ViewUserControl)
ViewContext ViewContext ViewContext

Gets or sets the view context.

(Inherited from ViewUserControl)
ViewData ViewData ViewData

Gets or sets the view data.

ViewDataKey ViewDataKey ViewDataKey

Gets or sets the view-data key.

(Inherited from ViewUserControl)
Writer Writer Writer

Gets the writer that is used to render the view to the response.

(Inherited from ViewUserControl)

Methods

EnsureViewData() EnsureViewData() EnsureViewData()

Ensures that view data is added to the ViewDataDictionary object of the user control if the view data exists.

(Inherited from ViewUserControl)
RenderView(ViewContext) RenderView(ViewContext) RenderView(ViewContext)

Renders the view by using the specified view context.

(Inherited from ViewUserControl)
SetTextWriter(TextWriter) SetTextWriter(TextWriter) SetTextWriter(TextWriter)

Sets the text writer that is used to render the view to the response.

(Inherited from ViewUserControl)
SetViewData(ViewDataDictionary) SetViewData(ViewDataDictionary) SetViewData(ViewDataDictionary)

Sets the view data for the view.

Applies to