ReusableResourceStore<TResource,TConstructorParameter>.Allocate Yöntem

Tanım

Önbellekte kullanılabilir olmadığında kaynağın yeni bir örneğini ayırır.

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

Parametreler

constructorParameter
TConstructorParameter

Nesne oluşturulurken geçirilecek parametre.

Döndürülenler

TResource

Kaynağın yeni bir örneği.

Şunlara uygulanır