BufferManager.CreateBufferManager(Int64, Int32) Método

Definição

Cria um novo BufferManager com um tamanho de pool de buffers máximo especificado e um tamanho máximo para cada buffer individual no pool.Creates a new BufferManager with a specified maximum buffer pool size and a maximum size for each individual buffer in the pool.

public:
 static System::ServiceModel::Channels::BufferManager ^ CreateBufferManager(long maxBufferPoolSize, int maxBufferSize);
public static System.ServiceModel.Channels.BufferManager CreateBufferManager (long maxBufferPoolSize, int maxBufferSize);
static member CreateBufferManager : int64 * int -> System.ServiceModel.Channels.BufferManager
Public Shared Function CreateBufferManager (maxBufferPoolSize As Long, maxBufferSize As Integer) As BufferManager

Parâmetros

maxBufferPoolSize
Int64

O tamanho máximo do pool.The maximum size of the pool.

maxBufferSize
Int32

O tamanho máximo de um buffer individual.The maximum size of an individual buffer.

Retornos

BufferManager

Retorna um objeto BufferManager com os parâmetros especificados.Returns a BufferManager object with the specified parameters.

Exceções

Não havia memória suficiente para criar o pool de buffers solicitado.There was insufficient memory to create the requested buffer pool.

maxBufferPoolSize ou maxBufferSize era menor que zero.maxBufferPoolSize or maxBufferSize was less than zero.

Comentários

Esse método cria um novo pool de buffers com quantos buffers puderem ser criados.This method creates a new buffer pool with as many buffers as can be created.

Aplica-se a