RootComponentCollectionExtensions.Add<TComponent> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the component specified by TComponent
to the collection specified by
components
to be associated with the selector specified by selector
and to be instantiated with the parameters specified by 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)
Type Parameters
- TComponent
The IComponent to add to the collection.
Parameters
- components
- RootComponentsCollection
The collection to which the component should be added.
- selector
- String
The selector to which the component will be associated.
- parameters
- IDictionary<String,Object>
The optional creation parameters for the component.