ViewComponentContext Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
ViewComponentContext() |
Crée un ViewComponentContext. |
ViewComponentContext(ViewComponentDescriptor, IDictionary<String,Object>, HtmlEncoder, ViewContext, TextWriter) |
Crée un ViewComponentContext. |
ViewComponentContext()
- Source:
- ViewComponentContext.cs
- Source:
- ViewComponentContext.cs
- Source:
- ViewComponentContext.cs
Crée un ViewComponentContext.
public:
ViewComponentContext();
public ViewComponentContext ();
Public Sub New ()
Remarques
Le constructeur par défaut est fourni à des fins de test unitaire uniquement.
S’applique à
ViewComponentContext(ViewComponentDescriptor, IDictionary<String,Object>, HtmlEncoder, ViewContext, TextWriter)
- Source:
- ViewComponentContext.cs
- Source:
- ViewComponentContext.cs
- Source:
- ViewComponentContext.cs
Crée un 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)
Paramètres
- viewComponentDescriptor
- ViewComponentDescriptor
ViewComponentContext pour le composant d’affichage appelé.
- arguments
- IDictionary<String,Object>
Arguments du composant d’affichage.
- htmlEncoder
- HtmlEncoder
HtmlEncoder à utiliser.
- viewContext
- ViewContext
L’ViewContextopérateur
- writer
- TextWriter
pour écrire la TextWriter sortie.