WebViewManager Constructor
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.
Constructs an instance of WebViewManager.
public WebViewManager (IServiceProvider provider, Microsoft.AspNetCore.Components.Dispatcher dispatcher, Uri appBaseUri, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore jsComponents, string hostPageRelativePath);
new Microsoft.AspNetCore.Components.WebView.WebViewManager : IServiceProvider * Microsoft.AspNetCore.Components.Dispatcher * Uri * Microsoft.Extensions.FileProviders.IFileProvider * Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore * string -> Microsoft.AspNetCore.Components.WebView.WebViewManager
Public Sub New (provider As IServiceProvider, dispatcher As Dispatcher, appBaseUri As Uri, fileProvider As IFileProvider, jsComponents As JSComponentConfigurationStore, hostPageRelativePath As String)
Parameters
- provider
- IServiceProvider
The IServiceProvider for the application.
- dispatcher
- Dispatcher
A Dispatcher instance that can marshal calls to the required thread or sync context.
- appBaseUri
- Uri
The base URI for the application. Since this is a webview, the base URI is typically on a private origin such as http://0.0.0.0/ or app://example/
- fileProvider
- IFileProvider
Provides static content to the webview.
- jsComponents
- JSComponentConfigurationStore
Describes configuration for adding, removing, and updating root components from JavaScript code.
- hostPageRelativePath
- String
Path to the host page within the fileProvider
.