MachineKeySessionSecurityTokenHandler Constructor (TimeSpan)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the MachineKeySessionSecurityTokenHandler class that has the specified default token lifetime.

Namespace:   System.IdentityModel.Services.Tokens
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public MachineKeySessionSecurityTokenHandler(
	TimeSpan tokenLifetime
)

Parameters

tokenLifetime
Type: System.TimeSpan

The default lifetime for a token.

Exception Condition
InvalidOperationException

tokenLifetime is shorter than or equal to TimeSpan.Zero

.NET Framework
Available since 4.5
Return to top
Show: