Dela via


HtmlRenderer.RenderComponentAsync Method

Definition

Overloads

RenderComponentAsync(Type)

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

RenderComponentAsync(Type, ParameterView)

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

RenderComponentAsync<TComponent>()

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

RenderComponentAsync<TComponent>(ParameterView)

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

RenderComponentAsync(Type)

Source:
HtmlRenderer.cs
Source:
HtmlRenderer.cs

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync (Type componentType);
member this.RenderComponentAsync : Type -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent>
Public Function RenderComponentAsync (componentType As Type) As Task(Of HtmlRootComponent)

Parameters

componentType
Type

The component type. This must implement IComponent.

Returns

A task that completes with HtmlRootComponent once the component hierarchy has completed any asynchronous tasks such as loading.

Applies to

RenderComponentAsync(Type, ParameterView)

Source:
HtmlRenderer.cs
Source:
HtmlRenderer.cs

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync (Type componentType, Microsoft.AspNetCore.Components.ParameterView parameters);
member this.RenderComponentAsync : Type * Microsoft.AspNetCore.Components.ParameterView -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent>
Public Function RenderComponentAsync (componentType As Type, parameters As ParameterView) As Task(Of HtmlRootComponent)

Parameters

componentType
Type

The component type. This must implement IComponent.

parameters
ParameterView

Parameters for the component.

Returns

A task that completes with HtmlRootComponent once the component hierarchy has completed any asynchronous tasks such as loading.

Applies to

RenderComponentAsync<TComponent>()

Source:
HtmlRenderer.cs
Source:
HtmlRenderer.cs

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync<TComponent> () where TComponent : Microsoft.AspNetCore.Components.IComponent;
member this.RenderComponentAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
Public Function RenderComponentAsync(Of TComponent As IComponent) () As Task(Of HtmlRootComponent)

Type Parameters

TComponent

The component type.

Returns

A task that completes with HtmlRootComponent once the component hierarchy has completed any asynchronous tasks such as loading.

Applies to

RenderComponentAsync<TComponent>(ParameterView)

Source:
HtmlRenderer.cs
Source:
HtmlRenderer.cs

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync<TComponent> (Microsoft.AspNetCore.Components.ParameterView parameters) where TComponent : Microsoft.AspNetCore.Components.IComponent;
member this.RenderComponentAsync : Microsoft.AspNetCore.Components.ParameterView -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
Public Function RenderComponentAsync(Of TComponent As IComponent) (parameters As ParameterView) As Task(Of HtmlRootComponent)

Type Parameters

TComponent

The component type.

Parameters

parameters
ParameterView

Parameters for the component.

Returns

A task that completes with HtmlRootComponent once the component hierarchy has completed any asynchronous tasks such as loading.

Applies to