Foundation.NSHttpCookie Class
HTTP Cookie

See Also: NSHttpCookie Members

Syntax

[Foundation.Register("NSHTTPCookie", true)]
public class NSHttpCookie : NSObject

Remarks

To instantiate instances of NSHTTPCookie you need to pass an NSDictionary to either the NSHttpCookie constructor or the NSHttpCookie.CookieFromProperties method.

The actual keys have to be one the public Key static fields from this class (NSHttpCookie.KeyName, NSHttpCookie.KeyValue, NSHttpCookie.KeyOriginURL, NSHttpCookie.KeyVersion, NSHttpCookie.KeyDomain, NSHttpCookie.KeyPath, NSHttpCookie.KeySecure, NSHttpCookie.KeyExpires, NSHttpCookie.KeyComment, NSHttpCookie.KeyCommentURL, NSHttpCookie.KeyDiscard, NSHttpCookie.KeyMaximumAge and NSHttpCookie.KeyPort).

c# Example


	  var properties = NSDictionary.FromObjectsAndKeys (new object [] { "MyCookieValue" }, new object [] { NSHttpCookie.KeyValue });
	  var cookie = new NSHttpCookie (properties);

	

Related content

Requirements

Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0