Gets or sets the user agent string of the user agent.
Syntax
| C# | |
|---|
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.
| C# | Copy Code |
|---|
// 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"; |
| PHP | Copy Code |
|---|
// 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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also