Compartir vía


ProcessModelSection.ShutdownTimeout Propiedad

Definición

Obtiene o establece un valor que indica el tiempo permitido para que se cierre el proceso de trabajo.

public:
 property TimeSpan ShutdownTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:00:05")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan ShutdownTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("shutdownTimeout", DefaultValue="00:00:05")>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.ShutdownTimeout : TimeSpan with get, set
Public Property ShutdownTimeout As TimeSpan

Valor de propiedad

Que TimeSpan define el intervalo. El valor predeterminado es 5 segundos.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar la ShutdownTimeout propiedad .


// Get the current ShutdownTimeout property value.
TimeSpan shutDownTimeout =
    processModelSection.ShutdownTimeout;

// Set the ShutdownTimeout property to
// TimeSpan.Parse("00:00:30").
processModelSection.ShutdownTimeout = 
    TimeSpan.Parse("00:00:30");
' Get the current ShutdownTimeout property value.
   Dim shutDownTimeout As TimeSpan = _
   processModelSection.ShutdownTimeout

' Set the ShutdownTimeout property to
' TimeSpan.Parse("00:00:30").
   processModelSection.ShutdownTimeout = _
   TimeSpan.Parse("00:00:30")

Comentarios

Esta propiedad especifica el número de minutos permitidos para que el proceso de trabajo se cierre correctamente. Cuando expire el tiempo de espera, ASP.NET cierra el proceso de trabajo de forma forzada.

Se aplica a