Edit

Share via


IssuedTokenClientCredential.MaxIssuedTokenCachingTime Property

Definition

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

public:
 property TimeSpan MaxIssuedTokenCachingTime { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan MaxIssuedTokenCachingTime { get; set; }
member this.MaxIssuedTokenCachingTime : TimeSpan with get, set
Public Property MaxIssuedTokenCachingTime As TimeSpan

Property Value

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

Exceptions

The value of set is less than zero.

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

Examples

This code shows how to set this property.

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

Remarks

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.

Applies to