WebViewManager.AddRootComponentAsync(Type, String, ParameterView) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將根元件新增至附加的頁面。
public System.Threading.Tasks.Task AddRootComponentAsync(Type componentType, string selector, Microsoft.AspNetCore.Components.ParameterView parameters);
member this.AddRootComponentAsync : Type * string * Microsoft.AspNetCore.Components.ParameterView -> System.Threading.Tasks.Task
Public Function AddRootComponentAsync (componentType As Type, selector As String, parameters As ParameterView) As Task
參數
- componentType
- Type
根元件的型別。 這必須實作 IComponent 。
- selector
- String
CSS 選取器,描述元件應該放置於頁面中的位置。
- parameters
- ParameterView
元件的參數。