WebViewManager.RemoveRootComponentAsync(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从当前页中删除以前附加的根组件。
public System.Threading.Tasks.Task RemoveRootComponentAsync(string selector);
member this.RemoveRootComponentAsync : string -> System.Threading.Tasks.Task
Public Function RemoveRootComponentAsync (selector As String) As Task
参数
- selector
- String
描述组件在页面中的位置的 CSS 选择器。 这必须与之前调用 AddRootComponentAsync(Type, String, ParameterView)时提供的选择器完全匹配。