Home News DOC Class DL Others Rice
Class  >  browser  >  UserAgent(bool)
browser class : UserAgent(bool) setter

Description

Sets the user agent.

Syntax

instance.UserAgent = value;

Assigned value

ClassDescription
stringUser agent string.

Return value

None.

Sample code

1:

browser b = new browser(); // Main-browser

2:

b.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"; // Firefox

Notes

None.

Links for reference

None.

Copyright © Rice All rights reserved.