HttpWebRequest.SupportsCookieContainer Property

July 28, 2014

Gets a value that indicates whether the CookieContainer property is supported by the HttpWebRequest instance.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

public virtual bool SupportsCookieContainer { get; }

Property Value

Type: System.Boolean
true if the CookieContainer property is supported by the HttpWebRequest instance; otherwise, false.

The SupportsCookieContainer property can be used to determine if the CookieContainer property is supported without the need to handle an exception.

If an application implements a custom WebRequest class and does not override the CookieContainer property, then the NotImplementedException is thrown.

Version Notes

Windows Phone

This member is present to support the .NET Compact Framework infrastructure in Windows Phone.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft