HttpMessageContent.TryComputeLength Method (Int64)

 

Computes the length of the stream if possible.

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

protected override bool TryComputeLength(
    out long length
)
protected:
virtual bool TryComputeLength(
    [OutAttribute] long long% length
) override
override TryComputeLength : 
        length:int64 byref -> bool
Protected Overrides Function TryComputeLength (
    <OutAttribute> ByRef length As Long
) As Boolean

Parameters

  • length
    Type: System.Int64

    The computed length of the stream.

Return Value

Type: System.Boolean

true if the length has been computed; otherwise false.

See Also

HttpMessageContent Class
System.Net.Http Namespace

Return to top