BufferManager::CreateBufferManager Method (Int64, Int32)
.NET Framework (current version)
Creates a new BufferManager with a specified maximum buffer pool size and a maximum size for each individual buffer in the pool.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: static BufferManager^ CreateBufferManager( long long maxBufferPoolSize, int maxBufferSize )
Parameters
- maxBufferPoolSize
-
Type:
System::Int64
The maximum size of the pool.
- maxBufferSize
-
Type:
System::Int32
The maximum size of an individual buffer.
Return Value
Type: System.ServiceModel.Channels::BufferManager^Returns a BufferManager object with the specified parameters.
| Exception | Condition | ||
|---|---|---|---|
| InsufficientMemoryException |
There was insufficient memory to create the requested buffer pool. | ||
| ArgumentOutOfRangeException | maxBufferPoolSize or maxBufferSize was less than zero. |
This method creates a new buffer pool with as many buffers as can be created.
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show:
