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 。