Condividi tramite


ViewComponentContext Costruttori

Definizione

Overload

ViewComponentContext()

Crea un nuovo oggetto ViewComponentContext.

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

Crea un nuovo oggetto ViewComponentContext.

ViewComponentContext()

Origine:
ViewComponentContext.cs
Origine:
ViewComponentContext.cs
Origine:
ViewComponentContext.cs

Crea un nuovo oggetto ViewComponentContext.

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

Commenti

Il costruttore predefinito viene fornito solo a scopo di unit test.

Si applica a

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

Origine:
ViewComponentContext.cs
Origine:
ViewComponentContext.cs
Origine:
ViewComponentContext.cs

Crea un nuovo oggetto 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)

Parametri

viewComponentDescriptor
ViewComponentDescriptor

Oggetto ViewComponentContext per il componente di visualizzazione richiamato.

arguments
IDictionary<String,Object>

Argomenti del componente di visualizzazione.

htmlEncoder
HtmlEncoder

Oggetto HtmlEncoder da usare.

viewContext
ViewContext

Oggetto ViewContext.

writer
TextWriter

Oggetto per la scrittura dell'output TextWriter .

Si applica a