RootComponentMapping 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RootComponentMapping(Type, String) |
使用提供的 |
RootComponentMapping(Type, String, ParameterView) |
使用提供的 |
RootComponentMapping(Type, String)
使用提供的 componentType
和 selector
,建立 的新實例 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 專案選取器或元件註冊識別碼。
適用於
RootComponentMapping(Type, String, ParameterView)
使用提供的 componentType
和 selector
,建立 的新實例 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 專案選取器或註冊識別碼。
- parameters
- ParameterView
要傳遞至元件的參數。