DotNetBrowser Documentation
DotNetBrowser Documentation
DotNetBrowser API Reference
DotNetBrowser.Browser
IBrowser Interface
IBrowser Properties
AllFrames Property
Audio Property
CreatePopupHandler Property
DevTools Property
Dialogs Property
DragAndDrop Property
Engine Property
Favicon Property
FocusedFrame Property
InjectCssHandler Property
InjectJsHandler Property
JsDialogs Property
Keyboard Property
MainFrame Property
Mouse Property
Navigation Property
OpenPopupHandler Property
PrintHandler Property
SelectCertificateHandler Property
Settings Property
ShowContextMenuHandler Property
Size Property
StartDownloadHandler Property
TextFinder Property
Title Property
Url Property
UserAgent Property
Zoom Property
IBrowser
UserAgent Property
Gets or sets the
user-agent
of the current browser instance.
Namespace:
DotNetBrowser.Browser
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.1.0
Syntax
C#
Copy
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
Exception
Condition
ObjectDisposedException
The
IBrowser
has already been disposed.
ConnectionClosedException
The connection to the Chromium engine is closed.
See Also
Reference
IBrowser Interface
DotNetBrowser.Browser Namespace
Copyright © 2020 TeamDev Ltd. All Rights Reserved.