Share via


RootComponentMappingCollection Class

Definition

Defines a collection of RootComponentMapping items.

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>, Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration
public class RootComponentMappingCollection : System.Collections.ObjectModel.Collection<Microsoft.AspNetCore.Components.WebAssembly.Hosting.RootComponentMapping>
type RootComponentMappingCollection = class
    inherit Collection<RootComponentMapping>
    interface IJSComponentConfiguration
type RootComponentMappingCollection = class
    inherit Collection<RootComponentMapping>
Public Class RootComponentMappingCollection
Inherits Collection(Of RootComponentMapping)
Implements IJSComponentConfiguration
Public Class RootComponentMappingCollection
Inherits Collection(Of RootComponentMapping)
Inheritance
RootComponentMappingCollection
Implements

Constructors

Name Description
RootComponentMappingCollection()

Properties

Name Description
JSComponents

Gets the store of configuration options that allow JavaScript to add root components dynamically.

Methods

Name Description
Add(Type, String, ParameterView)

Adds a component mapping to the collection.

Add(Type, String)

Adds a component mapping to the collection.

Add<TComponent>(String)

Adds a component mapping to the collection.

AddRange(IEnumerable<RootComponentMapping>)

Adds a collection of items to this collection.

Extension Methods

Name Description
RegisterCustomElement<TComponent>(IJSComponentConfiguration, String)
RegisterForJavaScript(IJSComponentConfiguration, Type, String, String)

Marks the specified component type as allowed for instantiation from JavaScript.

RegisterForJavaScript(IJSComponentConfiguration, Type, String)

Marks the specified component type as allowed for instantiation from JavaScript.

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String)

Marks the specified component type as allowed for instantiation from JavaScript.

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String)

Marks the specified component type as allowed for instantiation from JavaScript.

Applies to