HttpStringContent.TryComputeLength(UInt64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compute the HttpStringContent 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 HttpStringContent.
Returns
bool
true if length is a valid length; otherwise, false.
The return value should never be false.
Implements
Remarks
The TryComputeLength method calculates the content length for HTTP content in HttpStringContent. Headers set on the content are not included in the content length. This is useful for content types that are easy to calculate the content length.