HttpRequestHeaderCollection.Accept 属性

定义

获取 HttpMediaTypeWithQualityHeaderValue 对象的 HttpMediaTypeWithQualityHeaderValue 对象,该对象表示 HTTP 请求上的 Accept HTTP 标头的值。

public:
 property HttpMediaTypeWithQualityHeaderValueCollection ^ Accept { HttpMediaTypeWithQualityHeaderValueCollection ^ get(); };
HttpMediaTypeWithQualityHeaderValueCollection Accept();
public HttpMediaTypeWithQualityHeaderValueCollection Accept { get; }
var httpMediaTypeWithQualityHeaderValueCollection = httpRequestHeaderCollection.accept;
Public ReadOnly Property Accept As HttpMediaTypeWithQualityHeaderValueCollection

属性值

HttpMediaTypeWithQualityHeaderValue 对象的集合,该对象表示 Accept HTTP 标头的值。 空集合表示标头不存在。

适用于

另请参阅