MembershipSection.UserIsOnlineTimeWindow Property

 

Gets or sets the length of time, in minutes, before a user is no longer considered to be online.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[<ConfigurationPropertyAttribute("userIsOnlineTimeWindow", DefaultValue = "00:15:00")>]
[<TypeConverterAttribute(typeof(TimeSpanMinutesConverter))>]
[<TimeSpanValidatorAttribute(MinValueString = "00:01:00", MaxValueString = "10675199.02:48:05.4775807")>]
member UserIsOnlineTimeWindow : TimeSpan with get, set

Property Value

Type: System.TimeSpan

A length of time in minutes.

The value for the UserIsOnlineTimeWindow property is calculated by comparing the current time minus the UserIsOnlineTimeWindow property with the LastActivityDate value for the user.

The following code example demonstrates how to use the UserIsOnlineTimeWindow property. This code example is part of a larger example provided for the MembershipSection class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: