HtmlHelperComponentExtensions.RenderComponentAsync Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
RenderComponentAsync(IHtmlHelper, Type, RenderMode, Object) |
Vykreslí zadanou |
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode) |
Vykreslí . |
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode, Object) |
Vykreslí . |
RenderComponentAsync(IHtmlHelper, Type, RenderMode, Object)
Vykreslí zadanou componentType
hodnotu .
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)
Parametry
- htmlHelper
- IHtmlHelper
Hodnota IHtmlHelper
- componentType
- Type
Typ komponenty.
- renderMode
- RenderMode
Pro RenderMode komponentu.
Návraty
Platí pro
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode)
Vykreslí .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)
Parametry typu
- TComponent
Parametry
- htmlHelper
- IHtmlHelper
Hodnota IHtmlHelper
- renderMode
- RenderMode
Pro RenderMode komponentu.
Návraty
Kód HTML vytvořený vykresleným kódem TComponent
.
Platí pro
RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode, Object)
Vykreslí .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)
Parametry typu
- TComponent
Parametry
- htmlHelper
- IHtmlHelper
Hodnota IHtmlHelper
- renderMode
- RenderMode
Pro RenderMode komponentu.
Návraty
Kód HTML vytvořený vykresleným kódem TComponent
.