SupportsCookieContainer Property

HttpWebRequest.SupportsCookieContainer Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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:
© 2017 Microsoft