Home Notices Documents Classes Download Others Rice
Classes  >  browser  >  UserAgent(string)
browser class : UserAgent(string) setter

Description

Sets a string that indicates the user agent.

Syntax

browserInstance.UserAgent = userAgent

Arguments

ClassNameDescription
stringuserAgentA string that indicates the user agent.

Return value

None.

Sample code

1:

browser b = new browser();

2:

b.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0";

Notes

Default value is empty string.

Links for reference

None.

Copyright © Rice All rights reserved.