Gets or sets the maximum token lifetime for issued tokens.
Namespace: Microsoft.IdentityModel.Configuration
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As SecurityTokenServiceConfiguration
Dim value As TimeSpan

value = instance.MaximumTokenLifetime

instance.MaximumTokenLifetime = value

Syntax

Visual Basic
Public Property MaximumTokenLifetime As TimeSpan
C#
public TimeSpan MaximumTokenLifetime { get; set; }
C++
public:
property TimeSpan MaximumTokenLifetime {
		TimeSpan get ();
		void set (TimeSpan value);
}
J#
/** @property */
public TimeSpan get_MaximumTokenLifetime ()

/** @property */
public void set_MaximumTokenLifetime (TimeSpan value)
JScript
public function get MaximumTokenLifetime () : TimeSpan

public function set MaximumTokenLifetime (value : TimeSpan)

Property Value

Returns 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