共用方式為


RootComponent(String, Type, IDictionary<String,Object>) 建構函式

定義

建構的 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))

參數

selector
String

CSS 選取器字串,指定應該在檔案中放置元件的位置。 這在內的根元件之間必須是唯一 BlazorWebView的。

componentType
Type

根元件的型別。 此類型必須實作 IComponent

parameters
IDictionary<String,Object>

要傳遞至根元件的選擇性參數位典。

適用於