Method Close
Close()
Closes the current stream and releases any resources associated with the current stream.
Declaration
public override void 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. |