ReusableResourceStore<TResource> Class

Visual Studio 2015
 

tores a resource that requires no constructor parameters for instantiation. See ReusableResourceStoreBase for more information.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

System.Object
  Microsoft.VisualStudio.Utilities.ReusableResourceStoreBase<TResource>
    Microsoft.VisualStudio.Utilities.ReusableResourceStore<TResource>

public abstract class ReusableResourceStore<TResource> : ReusableResourceStoreBase<TResource>
where TResource : class

Type Parameters

TResource

The type of the resource.

NameDescription
System_CAPS_pubmethodAcquire()

Acquires a cached instance of the resource, or allocates a new instance if none are currently available.

System_CAPS_protmethodAcquireCore()

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>.)

System_CAPS_protmethodAllocate()

Allocates a new instance of the resource when one is not available in the cache.

System_CAPS_protmethodCanReuse(TResource)

Determines whether an already-cached resource value is safe to reuse when Acquire is called.

System_CAPS_protmethodCleanup(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>.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: