Mono Class Library: System.IO.Stream Overview | MembersSystem.IO.Stream.Close Method |
Closes the current stream and releases any resources associated with the current stream. [Edit]
|
Following a call to this method, a call to another operation on the same stream might result in an exception (such as ObjectDisposedException, for example). However, if the stream is already closed, a call to Stream.Close throws no exceptions.
Note: If this method is called while an asynchronous read or write is pending for a stream, the behavior of the stream is undefined.Operation
As described above. [Edit]
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0