Compartir a través de


ViewContext Constructores

Definición

Sobrecargas

ViewContext()

Crea una colección ViewContext vacía.

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Inicializa una nueva instancia de la clase ViewContext.

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

Inicializa una nueva instancia de la clase ViewContext.

ViewContext()

Source:
ViewContext.cs
Source:
ViewContext.cs
Source:
ViewContext.cs

Crea una colección ViewContext vacía.

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

Comentarios

El constructor predeterminado solo se proporciona con fines de prueba unitaria.

Se aplica a

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Source:
ViewContext.cs
Source:
ViewContext.cs
Source:
ViewContext.cs

Inicializa una nueva instancia de la clase 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

del ViewContext que se van a copiar los valores.

view
IView

Que IView se representa.

writer
TextWriter

objeto en el TextWriter que se va a representar la salida.

Se aplica a

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

Source:
ViewContext.cs
Source:
ViewContext.cs
Source:
ViewContext.cs

Inicializa una nueva instancia de la clase 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

ActionContext.

view
IView

Que IView se representa.

writer
TextWriter

objeto en el TextWriter que se va a representar la salida.

htmlHelperOptions
HtmlHelperOptions

que HtmlHelperOptions se va a aplicar a esta instancia.

Se aplica a