MemoryStream.SetLength Method

Sets the length of the current stream to the specified value.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override void SetLength (
         long value
)

Parameters

  • value
    The value at which to set the length

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

MemoryStream Class
MemoryStream Members
System.IO Namespace