ViewTemplateUserControl 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 对象提供容器 TemplateInfo 。
public class ViewTemplateUserControl : System.Web.Mvc.ViewTemplateUserControl<object>
type ViewTemplateUserControl = class
inherit ViewTemplateUserControl<obj>
Public Class ViewTemplateUserControl
Inherits ViewTemplateUserControl(Of Object)
- 继承
-
ViewTemplateUserControl
构造函数
| ViewTemplateUserControl() |
初始化 ViewTemplateUserControl 类的新实例。 |
属性
| Ajax |
获取视图的 AJAX 脚本。 (继承自 ViewUserControl<TModel>) |
| FormattedModelValue |
获取带格式的值。 (继承自 ViewTemplateUserControl<TModel>) |
| Html |
获取视图的 HTML。 (继承自 ViewUserControl<TModel>) |
| Model |
获取模型。 (继承自 ViewUserControl<TModel>) |
| TempData |
获取临时数据字典。 (继承自 ViewUserControl) |
| Url |
获取视图的 URL。 (继承自 ViewUserControl) |
| ViewBag |
获取视图包。 (继承自 ViewUserControl) |
| ViewContext |
获取或设置视图上下文。 (继承自 ViewUserControl) |
| ViewData |
获取或设置视图数据。 (继承自 ViewUserControl<TModel>) |
| ViewDataKey |
获取或设置视图数据键。 (继承自 ViewUserControl) |
| Writer |
获取用于向响应呈现视图的编写器。 (继承自 ViewUserControl) |
方法
| EnsureViewData() |
如果视图数据存在, ViewDataDictionary 请确保将视图数据添加到用户控件的对象。 (继承自 ViewUserControl) |
| RenderView(ViewContext) |
使用指定的视图上下文呈现视图。 (继承自 ViewUserControl) |
| SetTextWriter(TextWriter) |
已过时.
设置用于向响应呈现视图的文本编写器。 (继承自 ViewUserControl) |
| SetViewData(ViewDataDictionary) |
设置视图的视图数据。 (继承自 ViewUserControl<TModel>) |