Click or drag to resize
MimeKit

BoundStreamLength Property

Get the length of the stream, in bytes.

Namespace: MimeKit.IO
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public override long Length { get; }

Property Value

Int64
The length of the stream in bytes.
Exceptions
ExceptionCondition
NotSupportedException The stream does not support seeking.
ObjectDisposedException The stream has been disposed.
Remarks
If the EndBoundary property is greater than or equal to 0, then the length will be calculated by subtracting the StartBoundary from the EndBoundary. If the end of the stream is unbound, then the StartBoundary will be subtracted from the length of the BaseStream.
See Also