다음을 통해 공유


HttpContentCodingWithQualityHeaderValue 클래스

정의

HTTP 요청의 Accept-Encoding HTTP 헤더에 사용되는 허용 인코딩 정보를 나타냅니다.

public ref class HttpContentCodingWithQualityHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpContentCodingWithQualityHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpContentCodingWithQualityHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpContentCodingWithQualityHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentCodingWithQualityHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpContentCodingWithQualityHeaderValue : IStringable
function HttpContentCodingWithQualityHeaderValue(contentCoding, quality)
Public NotInheritable Class HttpContentCodingWithQualityHeaderValue
Implements IStringable
상속
Object Platform::Object IInspectable HttpContentCodingWithQualityHeaderValue
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

HttpContentCodingWithQualityHeaderValue 클래스는 HTTP 요청의 Accept-Encoding HTTP 헤더에 사용되는 허용 인코딩 정보를 나타냅니다.

HttpRequestHeaderCollectionAcceptEncoding 속성은 HttpContentCodingWithQualityHeaderValue 개체를 포함하는 HttpContentCodingWithQualityHeaderValueCollection을 반환합니다.

생성자

HttpContentCodingWithQualityHeaderValue(String)

콘텐츠 코딩 정보를 사용하여 HttpContentCodingHeaderValue 클래스의 새 instance 초기화합니다.

HttpContentCodingWithQualityHeaderValue(String, Double)

콘텐츠 코딩 정보 및 qvalue를 사용하여 HttpContentCodingHeaderValue 클래스의 새 instance 초기화합니다.

속성

ContentCoding

Accept-Encoding HTTP 헤더의 콘텐츠 코딩 특성 값을 가져옵니다.

Quality

Accept-Encoding HTTP 헤더의 qvalue 특성 값을 가져옵니다.

메서드

Parse(String)

문자열을 HttpContentCodingWithQualityHeaderValue instance 변환합니다.

ToString()

현재 HttpContentCodingHeaderValue 개체를 나타내는 문자열을 반환합니다.

TryParse(String, HttpContentCodingWithQualityHeaderValue)

문자열이 유효한 HttpContentCodingWithQualityHeaderValue 정보인지 여부를 확인합니다.

적용 대상

추가 정보