Compartilhar via


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

Definição

Constrói uma instância de 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))

Parâmetros

selector
String

A cadeia de caracteres do seletor CSS que especifica onde no documento o componente deve ser colocado. Isso deve ser exclusivo entre os componentes raiz dentro do BlazorWebView.

componentType
Type

O tipo do componente raiz. Esse tipo deve implementar IComponent.

parameters
IDictionary<String,Object>

Um dicionário opcional de parâmetros a serem passados para o componente raiz.

Aplica-se a