Dela via


HttpBufferContent.TryComputeLength(UInt64) Method

Definition

Computes the HttpBufferContent length in bytes.

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

Parameters

length
UInt64

unsigned long long

uint64_t

The length in bytes of the HttpBufferContent.

Returns

Boolean

bool

true if length is a valid length; otherwise, false.

Implements

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@)

Remarks

The TryComputeLength method calculates the content length for the HttpBufferContent. This is useful for content types that are easy to calculate the content length.

Applies to