Language

BlazorWebViewInitializedEventArgs.PlatformWebView Property

Definition

Gets the platform-native web view control that was initialized, as an untyped object, or null when the handler did not supply one.

public:
 property System::Object ^ PlatformWebView { System::Object ^ get(); };
public object? PlatformWebView { get; }
member this.PlatformWebView : obj
Public ReadOnly Property PlatformWebView As Object

Property Value

Remarks

This is the platform-neutral form of the strongly typed WebView property, which is only declared for target frameworks that MAUI itself has a built-in BlazorWebView backend for. On those target frameworks both properties report the same instance; where the stored value is not of the platform's web view type, WebView reports null rather than throwing.

The value is supplied by the handler that raises the event through BlazorWebViewInitializedEventArgs(Object). Event subscribers cannot change what later subscribers observe.

Applies to