Measuring StreamSet Length Method
Set the length of the stream.
Definition
Namespace: MimeKit.IO
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public override void SetLength(
long value
)Parameters
- value Int64
- The desired length of the stream in bytes.
Remarks
Sets the Length to the specified value and updates
Position to the specified value if (and only if)
the current position is greater than the new length value.
Exceptions
| ArgumentOutOfRangeException | value is out of range. |
| ObjectDisposedException | The stream has been disposed. |