共用方式為


WebRenderer.AddRootComponent(Type, String) 方法

定義

具現化根元件,並將它附加至指定元素內的瀏覽器。

protected internal int AddRootComponent (Type componentType, string domElementSelector);
member this.AddRootComponent : Type * string -> int
Protected Friend Function AddRootComponent (componentType As Type, domElementSelector As String) As Integer

參數

componentType
Type

元件的類型。

domElementSelector
String

可唯一識別 DOM 專案的 CSS 選取器。

傳回

新的元件識別碼。

適用於