Closes the current stream and releases any resources
associated with the current stream.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public override void Close() |
Visual Basic |
---|
Public Overrides Sub Close |
Visual C++ |
---|
public: virtual void Close() override |
Remarks
A call to Close is required if stream is opened with StreamMode.Read or StreamMode.Write
to release locks.
Exceptions
Exception | Condition |
---|---|
Alachisoft.NCache.Runtime.Exceptions..::..StreamAlreadyLockedException | Stream is already locked. |
Alachisoft.NCache.Runtime.Exceptions..::..StreamInvalidLockException | Lock acquired by current stream has become invalid. |
Alachisoft.NCache.Runtime.Exceptions..::..StreamNotFoundException | Stream is not found in the cache. |