Aracılığıyla paylaş


ProcessModelSection.ShutdownTimeout Özellik

Tanım

Çalışan işleminin kapanmasına izin verilen süreyi belirten bir değer alır veya ayarlar.

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

Özellik Değeri

TimeSpan

TimeSpan Aralığı tanımlama. Varsayılan değer 5 saniyedir.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin ShutdownTimeout nasıl kullanılacağını gösterir.


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

Açıklamalar

Bu özellik, çalışan işleminin kendisini düzgün bir şekilde kapatmasına izin verilen dakika sayısını belirtir. Zaman aşımı süresi dolduğunda ASP.NET çalışan işlemini zorla kapatır.

Şunlara uygulanır