DotNetBrowser Documentation
DotNetBrowser Documentation
DotNetBrowser API Reference
DotNetBrowser.Browser
IBrowser Interface
IBrowser Properties
AllFrames Property
Audio Property
Capture Property
ConvertJsNameHandler Property
CreatePopupHandler Property
CreditCards Property
DevTools Property
Dialogs Property
DragAndDrop Property
Engine Property
Favicon Property
FocusedFrame Property
FullScreen Property
InjectCssHandler Property
InjectJsHandler Property
JsDialogs Property
Keyboard Property
MainFrame Property
Mouse Property
Navigation Property
OpenPopupHandler Property
Passwords Property
PrintHtmlContentHandler Property
PrintPdfContentHandler Property
Profile Property
RequestPdfDocumentPasswordHandler Property
RequestPrintHandler Property
SelectCertificateHandler Property
Settings Property
ShowContextMenuHandler Property
Size Property
StartDownloadHandler Property
TextFinder Property
Title Property
Touch Property
Url Property
UserAgent Property
UserDataProfiles 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.24.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 © 2023 TeamDev Ltd. All Rights Reserved.