IssuedTokenClientCredential.MaxIssuedTokenCachingTime Property

 
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.

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
ArgumentOutOfRangeException

The value of set is less than zero.

InvalidOperationException

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
Show: