ObjectPoolProviderExtensions.CreateStringBuilderPool Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateStringBuilderPool(ObjectPoolProvider) |
Creates an ObjectPool<T> that pools StringBuilder instances. |
CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32) |
Creates an ObjectPool<T> that pools StringBuilder instances. |
CreateStringBuilderPool(ObjectPoolProvider)
Creates an ObjectPool<T> that pools StringBuilder 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)
Parameters
- provider
- ObjectPoolProvider
The ObjectPoolProvider.
Returns
The ObjectPool<T>.
Applies to
CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)
Creates an ObjectPool<T> that pools StringBuilder 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)
Parameters
- provider
- ObjectPoolProvider
The ObjectPoolProvider.
- initialCapacity
- Int32
The initial capacity to initialize StringBuilder instances with.
- maximumRetainedCapacity
- Int32
The maximum value for Capacity that is allowed to be retained, when an instance is returned.
Returns
The ObjectPool<T>.
Applies to
.NET