IssuedTokenClientCredential.MaxIssuedTokenCachingTime Property


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

Gets or sets the maximum caching time for an issued token.

Namespace:   System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public TimeSpan MaxIssuedTokenCachingTime { get; set; }

Property Value

Type: System.TimeSpan

A TimeSpan that represents the maximum caching time for an issued token. The default value is MaxValue.

Exception Condition

The value of set is less than zero.


An attempt was made to set a read-only credential.

By default, issued tokens obtained from the Security Token Service are cached by the WCF client channel. This property enables the application to specify the maximum time that the channel caches the issued token.

This code shows how to set this property.

itcc.MaxIssuedTokenCachingTime = new TimeSpan(0, 10, 0);

.NET Framework
Available since 3.0
Return to top