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