HtmlHelperComponentExtensions.RenderComponentAsync Méthode
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
RenderComponentAsync(IHtmlHelper, Type, RenderMode, Object) |
Restitue le spécifié |
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode) |
Génère le rendu de |
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode, Object) |
Génère le rendu de |
RenderComponentAsync(IHtmlHelper, Type, RenderMode, Object)
Restitue le spécifié componentType
.
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ RenderComponentAsync(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, Type ^ componentType, Microsoft::AspNetCore::Mvc::Rendering::RenderMode renderMode, System::Object ^ parameters);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> RenderComponentAsync (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Type componentType, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode, object parameters);
static member RenderComponentAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * Type * Microsoft.AspNetCore.Mvc.Rendering.RenderMode * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function RenderComponentAsync (htmlHelper As IHtmlHelper, componentType As Type, renderMode As RenderMode, parameters As Object) As Task(Of IHtmlContent)
Paramètres
- htmlHelper
- IHtmlHelper
L’IHtmlHelperopérateur
- componentType
- Type
Type de composant.
- renderMode
- RenderMode
Objet RenderMode du composant.
Retours
S’applique à
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode)
Génère le rendu de TComponent
.
public:
generic <typename TComponent>
where TComponent : Microsoft::AspNetCore::Components::IComponent[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ RenderComponentAsync(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, Microsoft::AspNetCore::Mvc::Rendering::RenderMode renderMode);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> RenderComponentAsync<TComponent> (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode) where TComponent : Microsoft.AspNetCore.Components.IComponent;
static member RenderComponentAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * Microsoft.AspNetCore.Mvc.Rendering.RenderMode -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
<Extension()>
Public Function RenderComponentAsync(Of TComponent As IComponent) (htmlHelper As IHtmlHelper, renderMode As RenderMode) As Task(Of IHtmlContent)
Paramètres de type
- TComponent
Paramètres
- htmlHelper
- IHtmlHelper
L’IHtmlHelperopérateur
- renderMode
- RenderMode
Objet RenderMode du composant.
Retours
Code HTML produit par le rendu TComponent
.
S’applique à
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode, Object)
Génère le rendu de TComponent
.
public:
generic <typename TComponent>
where TComponent : Microsoft::AspNetCore::Components::IComponent[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ RenderComponentAsync(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, Microsoft::AspNetCore::Mvc::Rendering::RenderMode renderMode, System::Object ^ parameters);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> RenderComponentAsync<TComponent> (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, Microsoft.AspNetCore.Mvc.Rendering.RenderMode renderMode, object parameters) where TComponent : Microsoft.AspNetCore.Components.IComponent;
static member RenderComponentAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * Microsoft.AspNetCore.Mvc.Rendering.RenderMode * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
<Extension()>
Public Function RenderComponentAsync(Of TComponent As IComponent) (htmlHelper As IHtmlHelper, renderMode As RenderMode, parameters As Object) As Task(Of IHtmlContent)
Paramètres de type
- TComponent
Paramètres
- htmlHelper
- IHtmlHelper
L’IHtmlHelperopérateur
- renderMode
- RenderMode
Objet RenderMode du composant.
Retours
Code HTML produit par le rendu TComponent
.