다음을 통해 공유


ObjectPoolProvider.Create 메서드

정의

오버로드

Create<T>()

ObjectPool를 만듭니다.

Create<T>(IPooledObjectPolicy<T>)

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

Create<T>()

Source:
ObjectPoolProvider.cs
Source:
ObjectPoolProvider.cs
Source:
ObjectPoolProvider.cs

ObjectPool를 만듭니다.

public:
generic <typename T>
 where T : class, gcnew() Microsoft::Extensions::ObjectPool::ObjectPool<T> ^ Create();
public Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> () where T : class, new();
member this.Create : unit -> Microsoft.Extensions.ObjectPool.ObjectPool<'T (requires 'T : null and 'T : (new : unit -> 'T))> (requires 'T : null and 'T : (new : unit -> 'T))
Public Function Create(Of T As {Class, New}) () As ObjectPool(Of T)

형식 매개 변수

T

풀을 만들 형식입니다.

반환

적용 대상

Create<T>(IPooledObjectPolicy<T>)

Source:
ObjectPoolProvider.cs
Source:
ObjectPoolProvider.cs
Source:
ObjectPoolProvider.cs

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

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

형식 매개 변수

T

풀을 만들 형식입니다.

매개 변수

반환

적용 대상