ViewTemplateUserControl<TModel> Class

Definition

Provides a container for TemplateInfo objects.

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

Type Parameters

TModel

The type of the model.

Inheritance
ViewTemplateUserControl<TModel>
Derived

Constructors

ViewTemplateUserControl<TModel>()

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

Properties

Ajax

Gets the AJAX script for the view.

(Inherited from ViewUserControl<TModel>)
FormattedModelValue

Gets the formatted value.

Html

Gets the HTML for the view.

(Inherited from ViewUserControl<TModel>)
Model

Gets the model.

(Inherited from ViewUserControl<TModel>)
TempData

Gets the temporary-data dictionary.

(Inherited from ViewUserControl)
Url

Gets the URL for the view.

(Inherited from ViewUserControl)
ViewBag

Gets the view bag.

(Inherited from ViewUserControl)
ViewContext

Gets or sets the view context.

(Inherited from ViewUserControl)
ViewData

Gets or sets the view data.

(Inherited from ViewUserControl<TModel>)
ViewDataKey

Gets or sets the view-data key.

(Inherited from ViewUserControl)
Writer

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

(Inherited from ViewUserControl)

Methods

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)

Renders the view by using the specified view context.

(Inherited from ViewUserControl)
SetTextWriter(TextWriter)

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

(Inherited from ViewUserControl)
SetViewData(ViewDataDictionary)

Sets the view data for the view.

(Inherited from ViewUserControl<TModel>)

Applies to