Compartir a través de


ViewComponentContext Constructores

Definición

Sobrecargas

ViewComponentContext()

Crea un nuevo ViewComponentContext.

ViewComponentContext(ViewComponentDescriptor, IDictionary<String,Object>, HtmlEncoder, ViewContext, TextWriter)

Crea un nuevo ViewComponentContext.

ViewComponentContext()

Source:
ViewComponentContext.cs
Source:
ViewComponentContext.cs
Source:
ViewComponentContext.cs

Crea un nuevo ViewComponentContext.

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

Comentarios

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

Se aplica a

ViewComponentContext(ViewComponentDescriptor, IDictionary<String,Object>, HtmlEncoder, ViewContext, TextWriter)

Source:
ViewComponentContext.cs
Source:
ViewComponentContext.cs
Source:
ViewComponentContext.cs

Crea un nuevo ViewComponentContext.

public:
 ViewComponentContext(Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentDescriptor ^ viewComponentDescriptor, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ arguments, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::IO::TextWriter ^ writer);
public ViewComponentContext (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor viewComponentDescriptor, System.Collections.Generic.IDictionary<string,object> arguments, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.IO.TextWriter writer);
public ViewComponentContext (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor viewComponentDescriptor, System.Collections.Generic.IDictionary<string,object?> arguments, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, System.IO.TextWriter writer);
new Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor * System.Collections.Generic.IDictionary<string, obj> * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.Rendering.ViewContext * System.IO.TextWriter -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext
Public Sub New (viewComponentDescriptor As ViewComponentDescriptor, arguments As IDictionary(Of String, Object), htmlEncoder As HtmlEncoder, viewContext As ViewContext, writer As TextWriter)

Parámetros

viewComponentDescriptor
ViewComponentDescriptor

ViewComponentContext para el componente de vista que se está invocando.

arguments
IDictionary<String,Object>

Argumentos del componente de vista.

htmlEncoder
HtmlEncoder

Objeto HtmlEncoder que se va a usar.

viewContext
ViewContext

ViewContext.

writer
TextWriter

para TextWriter escribir la salida.

Se aplica a