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>

要传递给根组件的参数的可选字典。

适用于