HttpRequestHeaders::UserAgent Property
.NET Framework (current version)
Gets the value of the User-Agent header for an HTTP request.
Assembly: System.Net.Http (in System.Net.Http.dll)
public: property HttpHeaderValueCollection<ProductInfoHeaderValue^>^ UserAgent { HttpHeaderValueCollection<ProductInfoHeaderValue^>^ get(); }
Property Value
Type: System.Net.Http.Headers::HttpHeaderValueCollection<ProductInfoHeaderValue^>^The value of the User-Agent header for an HTTP request.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: