Click or drag to resize

IBrowserUserAgent Property

Gets or sets the user-agent of the current browser instance.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax
C#
string UserAgent { get; set; }

Property Value

Type: String
The user-agent string for this browser. If the string has not been overridden, then the property is the same as the default user-agent string obtained through UserAgent
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
See Also