StreamWriter.Dispose Method

Releases the unmanaged resources used by the StreamWriter and optionally releases the managed resources.

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

Syntax

public override void Dispose (
         bool disposing
)

Parameters

  • disposing
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

When the disposing parameter is true, this method releases all resources held by any managed objects that this StreamWriter references. This method invokes the Dispose method of each referenced object.

Version Information

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

See Also

Reference

StreamWriter Class
StreamWriter Members
System.IO Namespace