RootComponentMapping 构造函数

定义

重载

RootComponentMapping(Type, String)

使用提供的 componentTypeselector创建 的新实例RootComponentMapping

RootComponentMapping(Type, String, ParameterView)

使用提供的 componentTypeselector创建 的新实例RootComponentMapping

RootComponentMapping(Type, String)

Source:
RootComponentMapping.cs
Source:
RootComponentMapping.cs
Source:
RootComponentMapping.cs
Source:
RootComponentMapping.cs
Source:
RootComponentMapping.cs

使用提供的 componentTypeselector创建 的新实例RootComponentMapping

public:
 RootComponentMapping(Type ^ componentType, System::String ^ selector);
public RootComponentMapping (Type componentType, string selector);
new Microsoft.AspNetCore.Components.WebAssembly.Hosting.RootComponentMapping : Type * string -> Microsoft.AspNetCore.Components.WebAssembly.Hosting.RootComponentMapping
Public Sub New (componentType As Type, selector As String)

参数

componentType
Type

组件类型。 必须实现 IComponent

selector
String

组件的 DOM 元素选择器或组件注册 ID。

适用于

RootComponentMapping(Type, String, ParameterView)

Source:
RootComponentMapping.cs
Source:
RootComponentMapping.cs
Source:
RootComponentMapping.cs
Source:
RootComponentMapping.cs

使用提供的 componentTypeselector创建 的新实例RootComponentMapping

public:
 RootComponentMapping(Type ^ componentType, System::String ^ selector, Microsoft::AspNetCore::Components::ParameterView parameters);
public RootComponentMapping (Type componentType, string selector, Microsoft.AspNetCore.Components.ParameterView parameters);
new Microsoft.AspNetCore.Components.WebAssembly.Hosting.RootComponentMapping : Type * string * Microsoft.AspNetCore.Components.ParameterView -> Microsoft.AspNetCore.Components.WebAssembly.Hosting.RootComponentMapping
Public Sub New (componentType As Type, selector As String, parameters As ParameterView)

参数

componentType
Type

组件类型。 必须实现 IComponent

selector
String

组件的 DOM 元素选择器或注册 ID。

parameters
ParameterView

要传递给组件的参数。

适用于