ReusableResourceStore<TResource,TConstructorParameter>.Allocate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allocates a new instance of the resource when one is not available in the cache.
protected:
abstract TResource Allocate(TConstructorParameter constructorParameter);
protected:
abstract TResource Allocate(TConstructorParameter constructorParameter);
abstract TResource Allocate(TConstructorParameter constructorParameter);
protected abstract TResource Allocate (TConstructorParameter constructorParameter);
abstract member Allocate : 'ConstructorParameter -> 'Resource
Protected MustOverride Function Allocate (constructorParameter As TConstructorParameter) As TResource
Parameters
- constructorParameter
- TConstructorParameter
The parameter to pass when constructing the object.
Returns
TResource
A new instance of the resource.