Partager via


ObjectPoolProviderExtensions.CreateStringBuilderPool Méthode

Définition

Surcharges

CreateStringBuilderPool(ObjectPoolProvider)

Crée un ObjectPool<T> qui met en pool StringBuilder des instances.

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

Crée un ObjectPool<T> qui met en pool StringBuilder des instances.

CreateStringBuilderPool(ObjectPoolProvider)

Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs

Crée un ObjectPool<T> qui met en pool StringBuilder des instances.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::ObjectPool::ObjectPool<System::Text::StringBuilder ^> ^ CreateStringBuilderPool(Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ provider);
public static Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder> CreateStringBuilderPool (this Microsoft.Extensions.ObjectPool.ObjectPoolProvider provider);
static member CreateStringBuilderPool : Microsoft.Extensions.ObjectPool.ObjectPoolProvider -> Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder>
<Extension()>
Public Function CreateStringBuilderPool (provider As ObjectPoolProvider) As ObjectPool(Of StringBuilder)

Paramètres

provider
ObjectPoolProvider

L’ObjectPoolProvideropérateur

Retours

L’ObjectPool<T>opérateur

S’applique à

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs

Crée un ObjectPool<T> qui met en pool StringBuilder des instances.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::ObjectPool::ObjectPool<System::Text::StringBuilder ^> ^ CreateStringBuilderPool(Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ provider, int initialCapacity, int maximumRetainedCapacity);
public static Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder> CreateStringBuilderPool (this Microsoft.Extensions.ObjectPool.ObjectPoolProvider provider, int initialCapacity, int maximumRetainedCapacity);
static member CreateStringBuilderPool : Microsoft.Extensions.ObjectPool.ObjectPoolProvider * int * int -> Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder>
<Extension()>
Public Function CreateStringBuilderPool (provider As ObjectPoolProvider, initialCapacity As Integer, maximumRetainedCapacity As Integer) As ObjectPool(Of StringBuilder)

Paramètres

initialCapacity
Int32

Capacité initiale d’initialisation StringBuilder des instances avec.

maximumRetainedCapacity
Int32

Valeur maximale pour Capacity qui est autorisée à être conservée, lorsqu’un instance est retourné.

Retours

Le ObjectPool<T>.

S’applique à