RootComponentMappingCollection.Add 方法

定义

重载

Add(Type, String)

将组件映射添加到集合。

Add(Type, String, ParameterView)

将组件映射添加到集合。

Add<TComponent>(String)

将组件映射添加到集合。

Add(Type, String)

Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
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)

Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
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)

Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
RootComponentMappingCollection.cs
Source:
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 元素选择器。

适用于