WebViewManager.RemoveRootComponentAsync(String) 方法

定义

从当前页中删除以前附加的根组件。

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)时提供的选择器完全匹配。

返回

适用于