WebRenderer.AddRootComponent(Type, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
具現化根元件,並將它附加至指定元素內的瀏覽器。
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 選取器。
傳回
新的元件識別碼。