HttpStringContent.TryComputeLength(UInt64) 메서드

정의

HttpStringContent 길이를 바이트 단위로 계산합니다.

public:
 virtual bool TryComputeLength([Out] unsigned long long & length) = TryComputeLength;
bool TryComputeLength([Out] uint64_t & length);
public bool TryComputeLength(out ulong length);
Public Function TryComputeLength (ByRef length As ULong) As Boolean

매개 변수

length
UInt64

unsigned long long

uint64_t

HttpStringContent의 길이(바이트)입니다.

반환

Boolean

bool

길이 가 유효한 길이 이면 true이고, 그렇지 않으면 false입니다.

반환 값은 false가 되어서는 안 됩니다.

구현

M:Windows.Web.Http.IHttpContent.TryComputeLength(System.UInt64@) M:Windows.Web.Http.IHttpContent.TryComputeLength(unsigned long long@) M:Windows.Web.Http.IHttpContent.TryComputeLength(uint64_t@)

설명

TryComputeLength 메서드는 HttpStringContent에서 HTTP 콘텐츠의 콘텐츠 길이를 계산합니다. 콘텐츠에 설정된 헤더는 콘텐츠 길이에 포함되지 않습니다. 이는 콘텐츠 길이를 쉽게 계산할 수 있는 콘텐츠 형식에 유용합니다.

적용 대상