Share via


Stream.Close Method

Closes the current Stream object and releases any resources (such as sockets and file handles) associated with it.

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

Syntax

public virtual void Close ()

Version Information

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

See Also

Reference

Stream Class
Stream Members
System.IO Namespace