Partilhar via


ReusableResourceStore<TResource>.Acquire Method

Definition

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

public:
 Microsoft::VisualStudio::Utilities::ReusableResourceHolder<TResource> Acquire();
public Microsoft.VisualStudio.Utilities.ReusableResourceHolder<TResource> Acquire ();
member this.Acquire : unit -> Microsoft.VisualStudio.Utilities.ReusableResourceHolder<'Resource (requires 'Resource : null)>
Public Function Acquire () As ReusableResourceHolder(Of TResource)

Returns

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

Applies to