Compartir a través de


ObjectPoolProvider.Create Método

Definición

Sobrecargas

Create<T>()

Crea una interfaz ObjectPool.

Create<T>(IPooledObjectPolicy<T>)

Crea un objeto ObjectPool con la instancia de IPooledObjectPolicy<T> especificada.

Create<T>()

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

Crea una interfaz 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)

Parámetros de tipo

T

Tipo para el que se va a crear un grupo.

Devoluciones

Se aplica a

Create<T>(IPooledObjectPolicy<T>)

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

Crea un objeto ObjectPool con la instancia de IPooledObjectPolicy<T> especificada.

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)

Parámetros de tipo

T

Tipo para el que se va a crear un grupo.

Parámetros

Devoluciones

Se aplica a