ViewTemplateUserControl<TModel> 类

定义

TemplateInfo 对象提供容器。

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)

类型参数

TModel

模型的类型。

继承
ViewTemplateUserControl<TModel>
派生

构造函数

ViewTemplateUserControl<TModel>()

初始化 ViewTemplateUserControl<TModel> 类的新实例。

属性

Ajax

获取视图的 AJAX 脚本。

(继承自 ViewUserControl<TModel>)
FormattedModelValue

获取带格式的值。

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>)

适用于