RootComponentCollectionExtensions.Add<TComponent> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 所 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>
元件的選擇性建立參數。