HttpRequestHeaders.UserAgent 属性

定义

获取 HTTP 请求的 User-Agent 标头值。Gets the value of the User-Agent header for an HTTP request.

public:
 property System::Net::Http::Headers::HttpHeaderValueCollection<System::Net::Http::Headers::ProductInfoHeaderValue ^> ^ UserAgent { System::Net::Http::Headers::HttpHeaderValueCollection<System::Net::Http::Headers::ProductInfoHeaderValue ^> ^ get(); };
public System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ProductInfoHeaderValue> UserAgent { get; }
member this.UserAgent : System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.ProductInfoHeaderValue>
Public ReadOnly Property UserAgent As HttpHeaderValueCollection(Of ProductInfoHeaderValue)

属性值

HttpHeaderValueCollection<ProductInfoHeaderValue>

HTTP 请求的 User-Agent 标头值。The value of the User-Agent header for an HTTP request.

适用于