RecyclableMemoryStream.SetLength method

December 6, 2023 · View on GitHub

Sets the length of the stream.

public override void SetLength(long value)

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionvalue is negative or larger than MaximumStreamCapacity.
ObjectDisposedExceptionObject has been disposed.

See Also

  • class RecyclableMemoryStream
  • namespace Microsoft.IO

Contents

  1. 1Exceptions
  2. 2See Also