Share via


RootComponentMappingCollection 类

定义

定义项的 RootComponentMapping 集合。

public ref class RootComponentMappingCollection : System::Collections::ObjectModel::Collection<Microsoft::AspNetCore::Components::WebAssembly::Hosting::RootComponentMapping>
public class RootComponentMappingCollection : System.Collections.ObjectModel.Collection<Microsoft.AspNetCore.Components.WebAssembly.Hosting.RootComponentMapping>
public class RootComponentMappingCollection : System.Collections.ObjectModel.Collection<Microsoft.AspNetCore.Components.WebAssembly.Hosting.RootComponentMapping>, Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration
type RootComponentMappingCollection = class
    inherit Collection<RootComponentMapping>
type RootComponentMappingCollection = class
    inherit Collection<RootComponentMapping>
    interface IJSComponentConfiguration
Public Class RootComponentMappingCollection
Inherits Collection(Of RootComponentMapping)
Public Class RootComponentMappingCollection
Inherits Collection(Of RootComponentMapping)
Implements IJSComponentConfiguration
继承
RootComponentMappingCollection
实现

构造函数

RootComponentMappingCollection()

定义项的 RootComponentMapping 集合。

属性

JSComponents

获取允许 JavaScript 动态添加根组件的配置选项的存储。

方法

Add(Type, String)

将组件映射添加到集合。

Add(Type, String, ParameterView)

将组件映射添加到集合。

Add<TComponent>(String)

将组件映射添加到集合。

AddRange(IEnumerable<RootComponentMapping>)

将项的集合添加到此集合。

扩展方法

RegisterCustomElement<TComponent>(IJSComponentConfiguration, String)

定义项的 RootComponentMapping 集合。

RegisterForJavaScript(IJSComponentConfiguration, Type, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

RegisterForJavaScript(IJSComponentConfiguration, Type, String, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

适用于