ObjectPoolProviderExtensions.CreateStringBuilderPool 方法

定义

重载

CreateStringBuilderPool(ObjectPoolProvider)

创建池ObjectPool<T>StringBuilder实例的 。

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

创建池ObjectPool<T>StringBuilder实例的 。

CreateStringBuilderPool(ObjectPoolProvider)

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

创建池ObjectPool<T>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)

参数

返回

ObjectPool<T>

适用于

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

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

创建池ObjectPool<T>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)

参数

initialCapacity
Int32

用于初始化 StringBuilder 实例的初始容量。

maximumRetainedCapacity
Int32

返回实例时允许保留的最大值 Capacity

返回

ObjectPool<T>

适用于