ViewUserControl<TModel> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Derived
Constructors
ViewUserControl<TModel>() |
Initializes a new instance of the ViewUserControl<TModel> class. |
Properties
Ajax |
Gets the AJAX script for the view. |
Html |
Gets the HTML for the view. |
Model |
Gets the model. |
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. |
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. |