CookieHandlerElement.GetConfiguredCookieHandler Method ()

.NET Framework (current version)

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

Gets a new cookie handler based on the configuration properties.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public CookieHandler GetConfiguredCookieHandler()

Return Value

Type: System.IdentityModel.Services.CookieHandler

The cookie handler. This will be an instance of CookieHandler or ChunkedCookieHandler depending on the kind of handler that is configured by the properties of the current instance.

Exception Condition

A cookie handler cannot be created from the properties of the current instance.

This method returns a cookie handler that is consistent with the configuration. The cookie handler returned will be either a chunked cookie handler or a custom cookie handler depending on how the configuration properties are set. For more information, see CookieHandlerElement.

.NET Framework
Available since 4.5
Return to top