Delen via


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

Definition

Constructs an instance of 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))

Parameters

selector
String

The CSS selector string that specifies where in the document the component should be placed. This must be unique among the root components within the BlazorWebView.

componentType
Type

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

parameters
IDictionary<String,Object>

An optional dictionary of parameters to pass to the root component.

Applies to