Sdílet prostřednictvím


WebViewManager.AddRootComponentAsync(Type, String, ParameterView) Metoda

Definice

Přidá kořenovou komponentu na připojenou stránku.

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

Parametry

componentType
Type

Typ kořenové komponenty. To musí implementovat IComponent.

selector
String

Selektor šablon stylů CSS popisující, kam se má komponenta na stránce umístit.

parameters
ParameterView

Parametry pro komponentu

Návraty

Platí pro