ObjectPoolProviderExtensions.CreateStringBuilderPool 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateStringBuilderPool(ObjectPoolProvider) |
创建池ObjectPool<T>StringBuilder实例的 。 |
CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32) |
创建池ObjectPool<T>StringBuilder实例的 。 |
CreateStringBuilderPool(ObjectPoolProvider)
创建池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)
参数
- provider
- ObjectPoolProvider
返回
适用于
CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)
创建池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)
参数
- provider
- ObjectPoolProvider
- initialCapacity
- Int32
用于初始化 StringBuilder 实例的初始容量。