Compartilhar via


ViewComponentContext Construtores

Definição

Sobrecargas

ViewComponentContext()

Cria um novo ViewComponentContext.

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

Cria um novo ViewComponentContext.

ViewComponentContext()

Origem:
ViewComponentContext.cs
Origem:
ViewComponentContext.cs
Origem:
ViewComponentContext.cs

Cria um novo ViewComponentContext.

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

Comentários

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

Aplica-se a

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

Origem:
ViewComponentContext.cs
Origem:
ViewComponentContext.cs
Origem:
ViewComponentContext.cs

Cria um novo 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

O ViewComponentContext para o componente de exibição que está sendo invocado.

arguments
IDictionary<String,Object>

Os argumentos do componente de exibição.

htmlEncoder
HtmlEncoder

O HtmlEncoder a ser usado.

viewContext
ViewContext

O ViewContext.

writer
TextWriter

O TextWriter para gravar a saída.

Aplica-se a