BufferModeSettings Construtor
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da BufferModeSettings classe usando definições especificadas.
public:
BufferModeSettings(System::String ^ name, int maxBufferSize, int maxFlushSize, int urgentFlushThreshold, TimeSpan regularFlushInterval, TimeSpan urgentFlushInterval, int maxBufferThreads);
public BufferModeSettings(string name, int maxBufferSize, int maxFlushSize, int urgentFlushThreshold, TimeSpan regularFlushInterval, TimeSpan urgentFlushInterval, int maxBufferThreads);
new System.Web.Configuration.BufferModeSettings : string * int * int * int * TimeSpan * TimeSpan * int -> System.Web.Configuration.BufferModeSettings
Public Sub New (name As String, maxBufferSize As Integer, maxFlushSize As Integer, urgentFlushThreshold As Integer, regularFlushInterval As TimeSpan, urgentFlushInterval As TimeSpan, maxBufferThreads As Integer)
Parâmetros
- name
- String
O nome do BufferModeSettings objeto que está a ser criado.
- maxBufferSize
- Int32
O número máximo de eventos em buffer ao mesmo tempo. O valor deve ser maior que zero.
- maxFlushSize
- Int32
O número máximo de eventos por flush de buffer. Deve ser maior que zero.
- urgentFlushThreshold
- Int32
O número de eventos armazenados em buffer antes de um flush de buffer ser ativado. O valor deve ser maior que zero e menor ou igual a maxBufferSize.
- regularFlushInterval
- TimeSpan
O tempo padrão entre as descargas do buffer. O valor pode ser tornado infinito definindo-o para Int32.Ticks MaxValue.
- urgentFlushInterval
- TimeSpan
O tempo mínimo que pode passar entre as lavagens de tampão. O valor deve ser menor ou igual a regularFlushInterval.
- maxBufferThreads
- Int32
O número máximo de roscas de buffer flushing que podem estar ativas ao mesmo tempo.
Exemplos
O exemplo de código seguinte mostra como usar o BufferModeSettings construtor. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.
// Add a BufferModeSettings object to the BufferModes collection property.
healthMonitoringSection.BufferModes.Add(new BufferModeSettings("Error Log",
1024, 256, 512, new TimeSpan(0, 30, 0), new TimeSpan(0, 5, 0), 2));
' Add a BufferModeSettings object to the BufferModes collection property.
healthMonitoringSection.BufferModes.Add(new BufferModeSettings("Error Log", _
1024, 256, 512, new TimeSpan(0, 30, 0), new TimeSpan(0, 5, 0), 2))