共用方式為


RootComponentCollectionExtensions.Add<TComponent> 方法

定義

將 所 TComponent 指定的元件加入至 所 components 指定的集合,以便與所 selector 指定的選取器相關聯,並以 所 parameters指定的參數具現化。

public static void Add<TComponent> (this Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentsCollection components, string selector, System.Collections.Generic.IDictionary<string,object?>? parameters = default) where TComponent : Microsoft.AspNetCore.Components.IComponent;
static member Add : Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentsCollection * string * System.Collections.Generic.IDictionary<string, obj> -> unit (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
<Extension()>
Public Sub Add(Of TComponent As IComponent) (components As RootComponentsCollection, selector As String, Optional parameters As IDictionary(Of String, Object) = Nothing)

類型參數

TComponent

要加入至集合的 IComponent

參數

components
RootComponentsCollection

元件應該加入至其中的集合。

selector
String

元件將相關聯的選取器。

parameters
IDictionary<String,Object>

元件的選擇性建立參數。

適用於