PowerTCP Mail for .NET
Length Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > CodingStream Class : Length Property




Gets the length in bytes of the stream.

Syntax

Visual Basic (Declaration) 
Public Overrides ReadOnly Property Length As Long
Visual Basic (Usage)Copy Code
Dim instance As CodingStream
Dim value As Long
 
value = instance.Length
C# 
public override long Length {get;}
Managed Extensions for C++ 
public: __property long get_Length() override;
C++/CLI 
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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.