Table of Contents

Property UserAgent

Namespace
DotNetBrowser.Browser
Assembly
DotNetBrowser.dll

UserAgent

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

string UserAgent { get; set; }

Property Value

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

ObjectDisposedException

The IBrowser has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.