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(GetType(TimeSpanMinutesConverter))>
<TimeSpanValidatorAttribute(MinValueString := "00:01:00", MaxValueString := "10675199.02:48:05.4775807")>
Public Property UserIsOnlineTimeWindow As TimeSpan

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}", _
 configSection.UserIsOnlineTimeWindow)

.NET Framework
Available since 2.0
Return to top
Show: