Condividi tramite


ProcessModelSection.ShutdownTimeout Proprietà

Definizione

Ottiene o imposta un valore che indica la durata consentita affinché il processo di lavoro venga chiuso.

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à

TimeSpan

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

Attributi

Esempio

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


// 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 il processo di lavoro per arrestarsi in modo normale. Al termine del timeout, ASP.NET arresta il processo di lavoro in modo forcibly.

Si applica a