Condividi tramite


ProcessModelSection.ShutdownTimeout Proprietà

Definizione

Ottiene o imposta un valore che indica il tempo consentito per l'arresto del processo di lavoro.

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

Valore della proprietà

Oggetto TimeSpan che definisce l'intervallo. Il valore predefinito è 5 secondi.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la ShutdownTimeout proprietà .


// 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")

Commenti

Questa proprietà specifica il numero di minuti consentiti per l'arresto normale del processo di lavoro. Alla scadenza del timeout, ASP.NET arresta forzatamente il processo di lavoro.

Si applica a