Click or drag to resize
MimeKit

MeasuringStreamSetLength Method

Set the length of the stream.

Namespace: MimeKit.IO
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public override void SetLength(
	long value
)

Parameters

value  Int64
The desired length of the stream in bytes.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is out of range.
ObjectDisposedException The stream has been disposed.
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.
See Also