PowerTCP FTP for .NET
Length Property (BaseStream)



Gets the length in bytes of the stream.
Syntax
Public Overrides ReadOnly Property Length As Long
Dim instance As BaseStream
Dim value As Long
 
value = instance.Length
public override long Length {get;}
public:
property int64 Length {
   int64 get() override;
}

Property Value

A long value representing the length of the Stream in bytes.
Exceptions
ExceptionDescription
System.NotSupportedExceptionThe Stream does not support seeking.
Remarks

If the Stream is a CodingStream or a Stream derived from CodingStream, this property is an estimate and should not be considered accurate. When using a MessageStream, MessageStream.Length cannot be depended on to be completely accurate once an object is set by the user. It is only precise during write operations. With other PowerTCP Streams this number should be accurate.

See Also

Reference

BaseStream Class
BaseStream Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic