FormsAuthenticationConfiguration.Timeout Eigenschap

Definitie

Hiermee haalt u de time-out voor verificatie op of stelt u deze in.

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

Waarde van eigenschap

De hoeveelheid tijd in minuten waarna de verificatie verloopt. De standaardwaarde is 30 minuten.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u toegang hebt tot de Timeout eigenschap. Raadpleeg het codevoorbeeld in het FormsAuthenticationConfiguration klasonderwerp voor meer informatie over het ophalen van de sectie.

// Get the current Timeout.
System.TimeSpan currentTimeout =
    formsAuthentication.Timeout;

// Set the Timeout.
formsAuthentication.Timeout =
    System.TimeSpan.FromMinutes(10);
' Get the current Timeout.
Dim currentTimeout As System.TimeSpan =
formsAuthentication.Timeout

' Set the Timeout.
formsAuthentication.Timeout =
System.TimeSpan.FromMinutes(10)

Van toepassing op

Zie ook