Freigeben über


ReusableResourceStoreBase<TResource>.Cleanup(TResource) Method

Definition

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.

Applies to