ReusableResourceStoreBase<TResource>.Cleanup(TResource) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Immediately before releasing an object, performs cleanup on that object. This might be necessary to clean up state stored in the object to prevent leaking memory.
protected:
virtual bool Cleanup(TResource value);
protected:
virtual bool Cleanup(TResource value);
virtual bool Cleanup(TResource value);
protected virtual bool Cleanup (TResource value);
abstract member Cleanup : 'Resource -> bool
override this.Cleanup : 'Resource -> bool
Protected Overridable Function Cleanup (value As TResource) As Boolean
Parameters
- value
- TResource
The value to clean up.
Returns
True if the object was able to be cleaned up and is ready for reuse, otherwise false.