Sdílet prostřednictvím


RootComponent(String, Type, IDictionary<String,Object>) Konstruktor

Definice

Vytvoří instanci objektu RootComponent.

public:
 RootComponent(System::String ^ selector, Type ^ componentType, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ parameters);
public RootComponent (string selector, Type componentType, System.Collections.Generic.IDictionary<string,object?>? parameters);
new Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent : string * Type * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent
Public Sub New (selector As String, componentType As Type, parameters As IDictionary(Of String, Object))

Parametry

selector
String

Řetězec selektoru CSS, který určuje, kam v dokumentu má být komponenta umístěna. Tato hodnota musí být jedinečná mezi kořenovými komponentami v rámci objektu BlazorWebView.

componentType
Type

Typ kořenové komponenty. Tento typ musí implementovat IComponent.

parameters
IDictionary<String,Object>

Volitelný slovník parametrů, které se mají předat kořenové komponentě.

Platí pro