Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebView.UserAgent Property

Definition

Namespace:
Microsoft.Maui.Controls
Assembly:
Microsoft.Maui.Controls.dll
Source:
WebView.cs
Source:
WebView.cs
Source:
WebView.cs
Source:
WebView.cs

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.

Gets or sets the user agent string that this WebView object uses.

public:
 property System::String ^ UserAgent { System::String ^ get(); void set(System::String ^ value); };
public string UserAgent { get; set; }
member this.UserAgent : string with get, set
Public Property UserAgent As String

Property Value

Implements

Remarks

The default value is the default User Agent of the underlying platform browser, or null if it cannot be determined. If the parameter is null the User Agent will not be updated and the current User Agent will remain.

Applies to


Feedback

Was this page helpful?