Freigeben über


ViewContext Konstruktoren

Definition

Überlädt

ViewContext()

Erstellt ein leeres ViewContext.

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Initialisiert eine neue Instanz von ViewContext.

ViewContext(ActionContext, IView, ViewDataDictionary, ITempDataDictionary, TextWriter, HtmlHelperOptions)

Initialisiert eine neue Instanz von ViewContext.

ViewContext()

Quelle:
ViewContext.cs
Quelle:
ViewContext.cs
Quelle:
ViewContext.cs

Erstellt ein leeres ViewContext.

public:
 ViewContext();
public ViewContext ();
Public Sub New ()

Hinweise

Der Standardkonstruktor wird nur für Komponententestzwecke bereitgestellt.

Gilt für:

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Quelle:
ViewContext.cs
Quelle:
ViewContext.cs
Quelle:
ViewContext.cs

Initialisiert eine neue Instanz von ViewContext.

public:
 ViewContext(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, Microsoft::AspNetCore::Mvc::ViewEngines::IView ^ view, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData, System::IO::TextWriter ^ writer);
public ViewContext (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, System.IO.TextWriter writer);
new Microsoft.AspNetCore.Mvc.Rendering.ViewContext : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewEngines.IView * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * System.IO.TextWriter -> Microsoft.AspNetCore.Mvc.Rendering.ViewContext
Public Sub New (viewContext As ViewContext, view As IView, viewData As ViewDataDictionary, writer As TextWriter)

Parameter

viewContext
ViewContext

Der ViewContext , aus dem Werte kopiert werden sollen.

view
IView

Das IView gerenderte.

writer
TextWriter

Der TextWriter , in dem die Ausgabe gerendert werden soll.

Gilt für:

ViewContext(ActionContext, IView, ViewDataDictionary, ITempDataDictionary, TextWriter, HtmlHelperOptions)

Quelle:
ViewContext.cs
Quelle:
ViewContext.cs
Quelle:
ViewContext.cs

Initialisiert eine neue Instanz von ViewContext.

public:
 ViewContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ViewEngines::IView ^ view, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData, Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ tempData, System::IO::TextWriter ^ writer, Microsoft::AspNetCore::Mvc::ViewFeatures::HtmlHelperOptions ^ htmlHelperOptions);
public ViewContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData, System.IO.TextWriter writer, Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions htmlHelperOptions);
new Microsoft.AspNetCore.Mvc.Rendering.ViewContext : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ViewEngines.IView * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary * System.IO.TextWriter * Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions -> Microsoft.AspNetCore.Mvc.Rendering.ViewContext
Public Sub New (actionContext As ActionContext, view As IView, viewData As ViewDataDictionary, tempData As ITempDataDictionary, writer As TextWriter, htmlHelperOptions As HtmlHelperOptions)

Parameter

actionContext
ActionContext

Die ActionContext.

view
IView

Das IView gerenderte.

writer
TextWriter

Der TextWriter , in dem die Ausgabe gerendert werden soll.

htmlHelperOptions
HtmlHelperOptions

DerHtmlHelperOptions, der für diese instance gilt.

Gilt für: