PowerTCP SSH and SFTP for .NET
Length Property (BaseStream)




Gets the length in bytes of the stream.
Syntax
'Declaration
 
Public Overrides ReadOnly Property Length As Long
'Usage
 
Dim instance As BaseStream
Dim value As Long
 
value = instance.Length
public override long Length {get;}
public: __property long get_Length() override;
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 SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic