Compartilhar via


ObjectPoolProviderExtensions.CreateStringBuilderPool Método

Definição

Sobrecargas

CreateStringBuilderPool(ObjectPoolProvider)

Cria um ObjectPool<T> que agrupa instâncias StringBuilder .

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

Cria um ObjectPool<T> que agrupa instâncias StringBuilder .

CreateStringBuilderPool(ObjectPoolProvider)

Origem:
ObjectPoolProviderExtensions.cs
Origem:
ObjectPoolProviderExtensions.cs
Origem:
ObjectPoolProviderExtensions.cs

Cria um ObjectPool<T> que agrupa instâncias StringBuilder .

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)

Parâmetros

Retornos

O ObjectPool<T>.

Aplica-se a

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

Origem:
ObjectPoolProviderExtensions.cs
Origem:
ObjectPoolProviderExtensions.cs
Origem:
ObjectPoolProviderExtensions.cs

Cria um ObjectPool<T> que agrupa instâncias StringBuilder .

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)

Parâmetros

initialCapacity
Int32

A capacidade inicial com a qual inicializar StringBuilder instâncias.

maximumRetainedCapacity
Int32

O valor máximo para Capacity que tem permissão para ser retido, quando uma instância é retornada.

Retornos

O ObjectPool<T>.

Aplica-se a