RootComponent.AddToWebViewManagerAsync(WebViewManager) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates this root component and adds it to the specified WebViewManager.
public:
System::Threading::Tasks::Task ^ AddToWebViewManagerAsync(Microsoft::AspNetCore::Components::WebView::WebViewManager ^ webViewManager);
public System.Threading.Tasks.Task AddToWebViewManagerAsync(Microsoft.AspNetCore.Components.WebView.WebViewManager webViewManager);
member this.AddToWebViewManagerAsync : Microsoft.AspNetCore.Components.WebView.WebViewManager -> System.Threading.Tasks.Task
Public Function AddToWebViewManagerAsync (webViewManager As WebViewManager) As Task
Parameters
- webViewManager
- WebViewManager
The WebViewManager to add this root component to.
Returns
A Task that completes when the root component has been added.
Exceptions
Thrown if webViewManager is null.
Thrown if Selector or ComponentType has not been set.
Remarks
This is intended for handlers implementing IBlazorWebViewHandler so that they can apply the same validation and registration behavior as the built-in handlers. Call this on the Dispatcher thread.