共用方式為


RootComponentMappingCollection.Add 方法

定義

多載

Add(Type, String)

將元件對應加入至集合。

Add(Type, String, ParameterView)

將元件對應加入至集合。

Add<TComponent>(String)

將元件對應加入至集合。

Add(Type, String)

來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs

將元件對應加入至集合。

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)

來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs

將元件對應加入至集合。

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)

來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs
來源:
RootComponentMappingCollection.cs

將元件對應加入至集合。

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 元素選取器。

適用於