ViewContext Construtores

Definição

Sobrecargas

ViewContext()

Cria um ViewContext vazio.

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Inicializa uma nova instância de ViewContext.

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

Inicializa uma nova instância de ViewContext.

ViewContext()

Origem:
ViewContext.cs
Origem:
ViewContext.cs
Origem:
ViewContext.cs

Cria um ViewContext vazio.

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

Comentários

O construtor padrão é fornecido apenas para fins de teste de unidade.

Aplica-se a

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Origem:
ViewContext.cs
Origem:
ViewContext.cs
Origem:
ViewContext.cs

Inicializa uma nova instância de 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)

Parâmetros

viewContext
ViewContext

O ViewContext do qual copiar valores.

view
IView

O IView que está sendo renderizado.

writer
TextWriter

O TextWriter para o qual renderizar a saída.

Aplica-se a

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

Origem:
ViewContext.cs
Origem:
ViewContext.cs
Origem:
ViewContext.cs

Inicializa uma nova instância de 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)

Parâmetros

actionContext
ActionContext

O ActionContext.

view
IView

O IView que está sendo renderizado.

writer
TextWriter

O TextWriter para o qual renderizar a saída.

htmlHelperOptions
HtmlHelperOptions

O HtmlHelperOptions a ser aplicado a essa instância.

Aplica-se a