Share via


ViewTemplateUserControl Class

Definition

Provides a container for TemplateInfo objects.

public class ViewTemplateUserControl : System.Web.Mvc.ViewTemplateUserControl<object>
type ViewTemplateUserControl = class
    inherit ViewTemplateUserControl<obj>
Public Class ViewTemplateUserControl
Inherits ViewTemplateUserControl(Of Object)
Inheritance

Constructors

ViewTemplateUserControl()

Initializes a new instance of the ViewTemplateUserControl class.

Properties

Ajax

Gets the AJAX script for the view.

(Inherited from ViewUserControl<TModel>)
FormattedModelValue

Gets the formatted value.

(Inherited from ViewTemplateUserControl<TModel>)
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)
Obsolete.

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