BufferModeSettings.RegularFlushInterval Propriedade
Definição
Obtém ou define o intervalo de tempo padrão entre as liberações de buffer.Gets or sets the amount of time between buffer flushes.
public:
property TimeSpan RegularFlushInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("regularFlushInterval", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsRequired=true)]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan RegularFlushInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("regularFlushInterval", DefaultValue=Mono.Cecil.CustomAttributeArgument, IsRequired=true)>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.RegularFlushInterval : TimeSpan with get, set
Public Property RegularFlushInterval As TimeSpan
Valor da propriedade
A quantidade regular de tempo entre liberações de buffer.The regular amount of time between buffer flushes.
- Atributos
Exemplos
O exemplo de código a seguir mostra como usar a MaxBufferSize propriedade.The following code example shows how to use the MaxBufferSize property. Este exemplo de código faz parte de um exemplo maior fornecido para a HealthMonitoringSection classe.This code example is part of a larger example provided for the HealthMonitoringSection class.
bufferModeSetting.RegularFlushInterval = TimeSpan.MaxValue;
bufferModeSetting.RegularFlushInterval = TimeSpan.MaxValue
Comentários
Esta propriedade deve ter um valor maior que zero.This property must have a value greater than zero. O valor pode ser definindo como infinito definindo-o como MaxValue tiques.The value can be made infinite by setting it to MaxValue ticks. Valores inválidos podem causar uma exceção quando a seção de configuração é salva.Invalid values may cause an exception when the configuration section is saved.
O valor padrão varia de acordo com o provedor.The default value varies based on the provider. Os BufferModeSettings objetos na BufferModes coleção são referenciados pelo nome pelos provedores na Providers coleção.The BufferModeSettings objects in the BufferModes collection are referred to by name by the providers in the Providers collection.