共用方式為


ObjectPoolProviderExtensions.CreateStringBuilderPool 方法

定義

多載

CreateStringBuilderPool(ObjectPoolProvider)

建立集 ObjectPool<T>StringBuilder 實例的 。

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

建立集 ObjectPool<T>StringBuilder 實例的 。

CreateStringBuilderPool(ObjectPoolProvider)

來源:
ObjectPoolProviderExtensions.cs
來源:
ObjectPoolProviderExtensions.cs
來源:
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)

來源:
ObjectPoolProviderExtensions.cs
來源:
ObjectPoolProviderExtensions.cs
來源:
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>

適用於