Share via


WebViewManager.AddRootComponentAsync(Type, String, ParameterView) Method

Definition

Adds a root component to the attached page.

public System.Threading.Tasks.Task AddRootComponentAsync (Type componentType, string selector, Microsoft.AspNetCore.Components.ParameterView parameters);
member this.AddRootComponentAsync : Type * string * Microsoft.AspNetCore.Components.ParameterView -> System.Threading.Tasks.Task
Public Function AddRootComponentAsync (componentType As Type, selector As String, parameters As ParameterView) As Task

Parameters

componentType
Type

The type of the root component. This must implement IComponent.

selector
String

The CSS selector describing where in the page the component should be placed.

parameters
ParameterView

Parameters for the component.

Returns

Applies to