RootComponentMappingCollection.Add Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Add(Type, String) |
Přidá do kolekce mapování komponent. |
| Add(Type, String, ParameterView) |
Přidá do kolekce mapování komponent. |
| Add<TComponent>(String) |
Přidá do kolekce mapování komponent. |
Add(Type, String)
Přidá do kolekce mapování komponent.
public:
void Add(Type ^ componentType, System::String ^ selector);
public void Add (Type componentType, string selector);
override this.Add : Type * string -> unit
Public Sub Add (componentType As Type, selector As String)
Parametry
- componentType
- Type
Typ komponenty. Musí implementovat IComponent.
- selector
- String
Selektor elementu DOM.
Platí pro
Add(Type, String, ParameterView)
Přidá do kolekce mapování komponent.
public:
void Add(Type ^ componentType, System::String ^ selector, Microsoft::AspNetCore::Components::ParameterView parameters);
public void Add (Type componentType, string selector, Microsoft.AspNetCore.Components.ParameterView parameters);
override this.Add : Type * string * Microsoft.AspNetCore.Components.ParameterView -> unit
Public Sub Add (componentType As Type, selector As String, parameters As ParameterView)
Parametry
- componentType
- Type
Typ komponenty. Musí implementovat IComponent.
- selector
- String
Selektor elementu DOM.
- parameters
- ParameterView
Parametry kořenové komponenty.
Platí pro
Add<TComponent>(String)
Přidá do kolekce mapování komponent.
public:
generic <typename TComponent>
where TComponent : Microsoft::AspNetCore::Components::IComponent void Add(System::String ^ selector);
public void Add<TComponent> (string selector) where TComponent : Microsoft.AspNetCore.Components.IComponent;
override this.Add : string -> unit (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
Public Sub Add(Of TComponent As IComponent) (selector As String)
Parametry typu
- TComponent
Typ komponenty.
Parametry
- selector
- String
Selektor elementu DOM.