Table of Contents

Class ViewUserControl<TModel>

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

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

public class ViewUserControl<TModel> : ViewUserControl, IViewDataContainer

Type Parameters

TModel

The type of the model.

Inheritance
ViewUserControl<TModel>
Implements
Derived
Inherited Members

Constructors

ViewUserControl()

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

public ViewUserControl()

Properties

Ajax

Gets the AJAX script for the view.

public AjaxHelper<TModel> Ajax { get; }

Property Value

AjaxHelper<TModel>

The AJAX script for the view.

Html

Gets the HTML for the view.

public HtmlHelper<TModel> Html { get; }

Property Value

HtmlHelper<TModel>

The HTML for the view.

Model

Gets the model.

public TModel Model { get; }

Property Value

TModel

A reference to the data model.

ViewData

Gets or sets the view data.

public ViewDataDictionary<TModel> ViewData { get; set; }

Property Value

ViewDataDictionary<TModel>

The view data.

Methods

SetViewData(ViewDataDictionary)

Sets the view data for the view.

protected override void SetViewData(ViewDataDictionary viewData)

Parameters

viewData ViewDataDictionary

The view data.