Condividi tramite


HtmlHelperComponentExtensions.RenderComponentAsync Metodo

Definizione

Overload

RenderComponentAsync(IHtmlHelper, Type, RenderMode, Object)

Esegue il rendering dell'oggetto specificato componentType.

RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode)

Esegue il rendering dell'oggetto TComponent.

RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode, Object)

Esegue il rendering dell'oggetto TComponent.

RenderComponentAsync(IHtmlHelper, Type, RenderMode, Object)

Origine:
HtmlHelperComponentExtensions.cs

Esegue il rendering dell'oggetto specificato 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)

Parametri

htmlHelper
IHtmlHelper

Oggetto IHtmlHelper.

componentType
Type

Tipo di componente.

renderMode
RenderMode

Oggetto RenderMode del componente.

parameters
Object

Oggetto Object contenente i parametri da passare al componente.

Restituisce

Si applica a

RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode)

Origine:
HtmlHelperComponentExtensions.cs

Esegue il rendering dell'oggetto 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)

Parametri di tipo

TComponent

Parametri

htmlHelper
IHtmlHelper

Oggetto IHtmlHelper.

renderMode
RenderMode

Oggetto RenderMode del componente.

Restituisce

HTML prodotto dall'oggetto di cui è stato eseguito TComponentil rendering.

Si applica a

RenderComponentAsync<TComponent>(IHtmlHelper, RenderMode, Object)

Origine:
HtmlHelperComponentExtensions.cs

Esegue il rendering dell'oggetto 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)

Parametri di tipo

TComponent

Parametri

htmlHelper
IHtmlHelper

Oggetto IHtmlHelper.

renderMode
RenderMode

Oggetto RenderMode del componente.

parameters
Object

Oggetto Object contenente i parametri da passare al componente.

Restituisce

HTML prodotto dall'oggetto di cui è stato eseguito TComponentil rendering.

Si applica a