DynamicComponent Class

Definition

A component that renders another component dynamically according to its Type parameter.

C#
public class DynamicComponent : Microsoft.AspNetCore.Components.IComponent
Inheritance
DynamicComponent
Implements

Constructors

DynamicComponent()

Constructs an instance of DynamicComponent.

Properties

Instance

Gets rendered component instance.

Parameters

Gets or sets a dictionary of parameters to be passed to the component.

Type

Gets or sets the type of the component to be rendered. The supplied type must implement IComponent.

Methods

Attach(RenderHandle)

Attaches the component to a RenderHandle.

SetParametersAsync(ParameterView)

Sets parameters supplied by the component's parent in the render tree.

Applies to

Product Versions
ASP.NET Core 6.0, 7.0, 8.0, 9.0