PushStreamContent.TryComputeLength Method (Int64)

 

Determines whether the stream content has a valid length in bytes.

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 length in bytes of the stream content.

Return Value

Type: System.Boolean

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

See Also

PushStreamContent Class
System.Net.Http Namespace

Return to top