This documentation is archived and is not being maintained.

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)

[TimeSpanValidatorAttribute(MinValueString = "00:01:00", MaxValueString = "10675199.02:48:05.4775807")]
[ConfigurationPropertyAttribute("userIsOnlineTimeWindow", DefaultValue = "00:15:00")]
public TimeSpan UserIsOnlineTimeWindow { 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.

// Display UserIsOnlineTimeWindow value.
Console.WriteLine("UserIsOnlineTimeWindow: {0}", 

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.