ZennoLab Assemblies Documentation
UserAgent Property
Example 
Gets or sets the user agent string of the user agent.
Syntax
string UserAgent {get; set;}

Property Value

Type: System.String

The user agent string of the user agent of profile.

Example
The following example uses property UserAgent of profile.
// get user agent string of the user agent
string userAgent = project.Profile.UserAgent;
 
// set user agent string of the user agent
project.Profile.UserAgent = "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0";
// get user agent string of the user agent
$userAgent = $project->Profile->UserAgent;
 
// set user agent string of the user agent
$project->Profile->UserAgent = "Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0";
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IProfile Interface
IProfile Members

Send Feedback