HttpRuntimeSection.DelayNotificationTimeout Propriedade
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.
Recebe ou define o atraso na notificação de alteração.
public:
property TimeSpan DelayNotificationTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:05")]
public TimeSpan DelayNotificationTimeout { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))]
[System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:00")]
public TimeSpan DelayNotificationTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:05")>]
member this.DelayNotificationTimeout : TimeSpan with get, set
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsConverter))>]
[<System.Configuration.ConfigurationProperty("delayNotificationTimeout", DefaultValue="00:00:00")>]
member this.DelayNotificationTimeout : TimeSpan with get, set
Public Property DelayNotificationTimeout As TimeSpan
Valor de Propriedade
O tempo, em segundos, que especifica o atraso na notificação de alteração.
- Atributos
Exemplos
O exemplo seguinte mostra como utilizar a DelayNotificationTimeout propriedade.
// Get the DelayNotificationTimeout property value.
Response.Write("DelayNotificationTimeout: " +
configSection.DelayNotificationTimeout.ToString() + "<br>");
// Set the DelayNotificationTimeout property value to 10 seconds.
configSection.DelayNotificationTimeout = TimeSpan.FromSeconds(10);
' Get the DelayNotificationTimeout property value.
Response.Write("DelayNotificationTimeout: " & _
configSection.DelayNotificationTimeout.ToString() & "<br>")
' Set the DelayNotificationTimeout property value to 10 seconds.
configSection.DelayNotificationTimeout = TimeSpan.FromSeconds(10)
Observações
Pode resolver o problema causado por algumas aplicações antivírus, ao escrever informação nos ficheiros digitalizados, definindo a DelayNotificationTimeout propriedade.
Note
O problema ocorre porque as alterações de ficheiros causadas pela análise antivírus não podem ser distinguidas das feitas pelo utilizador. O resultado final é o reinício da aplicação cujos ficheiros estão a ser digitalizados.