HttpMessageContent.TryComputeLength Method
Computes the length of the stream if possible.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Protected Overrides Function TryComputeLength ( _
<OutAttribute> ByRef length As Long _
) As Boolean
'Usage
Dim length As Long
Dim returnValue As Boolean
returnValue = Me.TryComputeLength(length)
protected override bool TryComputeLength(
out long length
)
protected:
virtual bool TryComputeLength(
[OutAttribute] long long% length
) override
abstract TryComputeLength :
length:int64 byref -> bool
override TryComputeLength :
length:int64 byref -> bool
protected override function TryComputeLength(
length : long
) : 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.