Share via


Stream.SetLength Method

When overridden in a derived class, this method sets the length of the current Stream object.

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

Syntax

public virtual abstract void SetLength (
         longvalue
)

Parameters

  • value
    The length you want for the current stream, in bytes.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Stream Class
Stream Members
System.IO Namespace