MembershipSection.UserIsOnlineTimeWindow Property

Definition

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

C#
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanMinutesConverter))]
[System.Configuration.ConfigurationProperty("userIsOnlineTimeWindow", DefaultValue="00:15:00")]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:01:00")]
public TimeSpan UserIsOnlineTimeWindow { get; set; }

Property Value

A length of time in minutes.

Attributes

Examples

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.

C#
// Display UserIsOnlineTimeWindow value.
Console.WriteLine("UserIsOnlineTimeWindow: {0}", 
  configSection.UserIsOnlineTimeWindow);

Remarks

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

Applies to

Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1