| Visual Basic (Declaration) | |
|---|---|
Public Overrides ReadOnly Property Length As Long | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MimeAttachmentStream Dim value As Long value = instance.Length | |
| C# | |
|---|---|
public override long Length {get;} | |
| Managed Extensions for C++ | |
|---|---|
public: __property long get_Length() override; | |
Property Value
A long value representing the length of the Stream in bytes.| Exception | Description |
|---|---|
| System.NotSupportedException | The Stream does not support seeking. |
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.
Target Platforms: Microsoft .NET Framework 2.0
Copy Code