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

Visual Studio 2015
 

Validates that an already-cached resource value is safe to reuse when Acquire is called.

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

protected:
virtual bool CanReuse(
	TResource value,
	TConstructorParameter parameter
)

Parameters

value
Type: TResource

The cached value that is about to be reused during Acquire().

parameter
Type: TConstructorParameter

The parameter that should be used to construct a new value.

Return Value

Type: System::Boolean

True if the object is in a reusable state, otherwise false.

Return to top
Show: