ReusableResourceStore<TResource, TConstructorParameter> Methods
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
| Name | Description | |
|---|---|---|
![]() | Acquire(TConstructorParameter) | Acquires a cached instance of the resource, or allocates a new instance if none are currently available. This is a disposable object that should be disposed when usage of the resource is complete. |
![]() | AcquireCore() | Gets access to the resource stored by this object, and removes the resource so that subsequent callers cannot be handed the same resource at the same time.(Inherited from ReusableResourceStoreBase<TResource>.) |
![]() | Allocate(TConstructorParameter) | Allocates a new instance of the resource when one is not available in the cache. |
![]() | CanReuse(TResource, TConstructorParameter) | Validates that an already-cached resource value is safe to reuse when Acquire is called. |
![]() | Cleanup(TResource) | 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.(Inherited from ReusableResourceStoreBase<TResource>.) |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |

