HttpWebRequest.UserAgent Property

Gets or sets the value of the User-Agent HTTP header.

Namespace: System.Net
Assembly: System (in system.dll)

Syntax

public string UserAgent { get; set; }

Property Value

The value of the User-agent HTTP header. The default value is null.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

HttpWebRequest Class
HttpWebRequest Members
System.Net Namespace