Method Close
Close()
Closes the current stream and releases any resources associated with the current stream.
Declaration
public override void Close()
Overrides
System.IO.Stream.Close()
Remarks
A call to close is required if stream is opened with StreamMode.Read or StreamMode.Write to release locks.
Exceptions
Type | Condition |
---|---|
StreamAlreadyLockedException | Stream is already locked. |
StreamInvalidLockException | Lock acquired by current stream has become invalid. |
StreamNotFoundException | Stream is not found in the cache. |