LocalClientSecuritySettings.MaxCookieCachingTime 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 secure conversation cookies.

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

public TimeSpan MaxCookieCachingTime { get; set; }

Property Value

Type: System.TimeSpan

A TimeSpan that represents the maximum caching time for secure conversation cookies. The default is 10675199 days.

Exception Condition
ArgumentOutOfRangeException

The property is set to a value less than 0.

This example shows how to get the MaxCookieCachingTimevalue.

TimeSpan maxCookieCachingTime = settings.MaxCookieCachingTime;

.NET Framework
Available since 3.0
Return to top
Show: