다음을 통해 공유


DefaultObjectPoolProvider.Create<T> 메서드

정의

지정된 IPooledObjectPolicy<T>를 사용하여 ObjectPool을 만듭니다.

public:
generic <typename T>
 where T : class override Microsoft::Extensions::ObjectPool::ObjectPool<T> ^ Create(Microsoft::Extensions::ObjectPool::IPooledObjectPolicy<T> ^ policy);
public override Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> (Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<T> policy) where T : class;
override this.Create : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<'T (requires 'T : null)> -> Microsoft.Extensions.ObjectPool.ObjectPool<'T (requires 'T : null)> (requires 'T : null)
Public Overrides Function Create(Of T As Class) (policy As IPooledObjectPolicy(Of T)) As ObjectPool(Of T)

형식 매개 변수

T

풀을 만들 형식입니다.

매개 변수

반환

적용 대상