ReusableResourceStore<TResource, TConstructorParameter>::Acquire Method (TConstructorParameter)

Visual Studio 2015
 

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.

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

public:
ReusableResourceHolder<TResource> Acquire(
	TConstructorParameter constructorParameter
)

Parameters

constructorParameter
Type: TConstructorParameter

The type of the constructor parameter.

Return Value

Type: Microsoft.VisualStudio.Utilities::ReusableResourceHolder<TResource>

A disposable object that should be disposed when usage of the resource is complete.

Return to top
Show: