Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LocalServiceSecuritySettings::MaxCachedCookies Property

 

Gets or sets the maximum number of SecurityContextSecurityTokens that the service allows to cache at once.

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

public:
property int MaxCachedCookies {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

The maximum number of secure conversation cookies that can be cached by the service. When this limit is reached the service removes the oldest cached secure conversation cookies to make room for new secure conversation cookies. The default is 1000.

Exception Condition
ArgumentOutOfRangeException

The property is set to a value less than 0.

This example shows how to get the MaxCachedCookies value.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft