Condividi tramite


ViewContext Costruttori

Definizione

Overload

ViewContext()

Crea un ViewContext vuoto.

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Inizializza una nuova istanza di ViewContext.

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

Inizializza una nuova istanza di ViewContext.

ViewContext()

Origine:
ViewContext.cs
Origine:
ViewContext.cs
Origine:
ViewContext.cs

Crea un ViewContext vuoto.

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

Commenti

Il costruttore predefinito viene fornito solo a scopo di unit test.

Si applica a

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Origine:
ViewContext.cs
Origine:
ViewContext.cs
Origine:
ViewContext.cs

Inizializza una nuova istanza di 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)

Parametri

viewContext
ViewContext

Oggetto ViewContext da cui copiare i valori.

view
IView

Rendering IView .

writer
TextWriter

Oggetto da cui eseguire il rendering dell'output TextWriter .

Si applica a

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

Origine:
ViewContext.cs
Origine:
ViewContext.cs
Origine:
ViewContext.cs

Inizializza una nuova istanza di 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)

Parametri

actionContext
ActionContext

Oggetto ActionContext.

view
IView

Rendering IView .

writer
TextWriter

Oggetto da cui eseguire il rendering dell'output TextWriter .

htmlHelperOptions
HtmlHelperOptions

Oggetto HtmlHelperOptions da applicare a questa istanza.

Si applica a