Namespace: Microsoft.IdentityModel.Web.Configuration
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As CookieHandlerElement
Dim value As TimeSpan

value = instance.PersistentSessionLifetime

instance.PersistentSessionLifetime = value

Syntax

Visual Basic
<ConfigurationPropertyAttribute("persistentSessionLifetime", DefaultValue:="0:0:0", IsRequired:=False)> _
<TimeSpanValidatorAttribute(MinValueString:="0:0:0", MaxValueString:="365.0:0:0")> _
Public Property PersistentSessionLifetime As TimeSpan
C#
[ConfigurationPropertyAttribute("persistentSessionLifetime", DefaultValue="0:0:0", IsRequired=false)] 
[TimeSpanValidatorAttribute(MinValueString="0:0:0", MaxValueString="365.0:0:0")] 
public TimeSpan PersistentSessionLifetime { get; set; }
C++
[ConfigurationPropertyAttribute(L"persistentSessionLifetime", DefaultValue=L"0:0:0", IsRequired=false)] 
[TimeSpanValidatorAttribute(MinValueString=L"0:0:0", MaxValueString=L"365.0:0:0")] 
public:
property TimeSpan PersistentSessionLifetime {
		TimeSpan get ();
		void set (TimeSpan value);
}
J#
/** @property */
public TimeSpan get_PersistentSessionLifetime ()

/** @property */
public void set_PersistentSessionLifetime (TimeSpan value)
JScript
public function get PersistentSessionLifetime () : TimeSpan

public function set PersistentSessionLifetime (value : TimeSpan)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also