Udostępnij za pośrednictwem


ViewComponentContext Konstruktory

Definicja

Przeciążenia

ViewComponentContext()

Tworzy nowy adres ViewComponentContext.

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

Tworzy nowy adres ViewComponentContext.

ViewComponentContext()

Źródło:
ViewComponentContext.cs
Źródło:
ViewComponentContext.cs
Źródło:
ViewComponentContext.cs

Tworzy nowy adres ViewComponentContext.

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

Uwagi

Domyślny konstruktor jest udostępniany tylko do celów testów jednostkowych.

Dotyczy

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

Źródło:
ViewComponentContext.cs
Źródło:
ViewComponentContext.cs
Źródło:
ViewComponentContext.cs

Tworzy nowy adres 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)

Parametry

viewComponentDescriptor
ViewComponentDescriptor

Element ViewComponentContext dla wywoływanego składnika widoku.

arguments
IDictionary<String,Object>

Argumenty składnika widoku.

htmlEncoder
HtmlEncoder

Do HtmlEncoder użycia.

viewContext
ViewContext

Element ViewContext.

writer
TextWriter

Element do zapisywania TextWriter danych wyjściowych.

Dotyczy