Language

RootComponent.RemoveFromWebViewManagerAsync(WebViewManager) Method

Definition

Validates this root component and removes it from the specified WebViewManager.

public:
 System::Threading::Tasks::Task ^ RemoveFromWebViewManagerAsync(Microsoft::AspNetCore::Components::WebView::WebViewManager ^ webViewManager);
public System.Threading.Tasks.Task RemoveFromWebViewManagerAsync(Microsoft.AspNetCore.Components.WebView.WebViewManager webViewManager);
member this.RemoveFromWebViewManagerAsync : Microsoft.AspNetCore.Components.WebView.WebViewManager -> System.Threading.Tasks.Task
Public Function RemoveFromWebViewManagerAsync (webViewManager As WebViewManager) As Task

Parameters

webViewManager
WebViewManager

The WebViewManager to remove this root component from.

Returns

A Task that completes when the root component has been removed.

Exceptions

Thrown if webViewManager is null.

Thrown if Selector has not been set.

Remarks

This is intended for handlers implementing IBlazorWebViewHandler so that they can apply the same validation and removal behavior as the built-in handlers. Call this on the Dispatcher thread.

Applies to