ViewComponentContext Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
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
- writer
- TextWriter
para TextWriter escribir la salida.