RootComponentMappingCollection.Add 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Add(Type, String) |
將元件對應加入至集合。 |
Add(Type, String, ParameterView) |
將元件對應加入至集合。 |
Add<TComponent>(String) |
將元件對應加入至集合。 |
Add(Type, String)
將元件對應加入至集合。
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)
參數
- componentType
- Type
元件類型。 必須實作 IComponent 。
- selector
- String
DOM 元素選取器。
適用於
Add(Type, String, ParameterView)
將元件對應加入至集合。
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)
參數
- componentType
- Type
元件類型。 必須實作 IComponent 。
- selector
- String
DOM 元素選取器。
- parameters
- ParameterView
根元件的參數。
適用於
Add<TComponent>(String)
將元件對應加入至集合。
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)
類型參數
- TComponent
元件類型。
參數
- selector
- String
DOM 元素選取器。