Share via


FileStream.SetLength Method

Sets the length of this stream to the given value.

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

Syntax

public override void SetLength (
         longlength
)

Parameters

  • length
    The new length of the stream.

Version Information

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

See Also

Reference

FileStream Class
FileStream Members
System.IO Namespace