MonoMac.Foundation.NSHttpCookie Class
See Also: NSHttpCookie
Syntax
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);
Requirements
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0
The members of MonoMac.Foundation.NSHttpCookie are listed below.
See Also: NSObject
Public Constructors
A constructor that initializes the object from the data stored in the unarchiver object. | ||
Creates a new NSHttpCookie | ||
Constructor to call on derived classes when the derived class has an [Export] constructor. | ||
A constructor used when creating managed representations of unmanaged objects; Called by the runtime. | ||
Create a new cookie from the supplied System.Net.Cookie instance properties | ||
Create a new cookie with the supplied name and value. | ||
Create a new cookie with the supplied name, value and path. | ||
Create a new cookie with the supplied name, value, path and domain. |
Public Fields
static | KeyComment | NSString. |
static | KeyCommentURL | NSString. |
static | KeyDiscard | NSString. |
static | KeyDomain | NSString. |
static | KeyExpires | NSString. |
static | KeyMaximumAge | NSString. |
static | KeyName | NSString. |
static | KeyOriginURL | NSString. |
static | KeyPath | NSString. |
static | KeyPort | NSString. |
static | KeySecure | NSString. |
static | KeyValue | NSString. |
static | KeyVersion | NSString. |
Public Properties
[read-only] override | ClassHandle | IntPtr. The handle for this class. |
[read-only] | Comment | String. |
[read-only] | CommentUrl | NSUrl. |
[read-only] | Domain | String. |
[read-only] | ExpiresDate | NSDate. |
[read-only] | IsHttpOnly | Boolean. |
[read-only] | IsSecure | Boolean. |
[read-only] | IsSessionOnly | Boolean. |
[read-only] | Name | String. |
[read-only] | Path | String. |
[read-only] | PortList | NSNumber[]. |
[read-only] | Properties | NSDictionary. |
[read-only] | Value | String. |
[read-only] | Version | UInt32. |
Public Methods
static | CookieFromProperties(NSDictionary)Factory method to create cookies. | |
static | CookiesWithResponseHeaderFields(NSDictionary, NSUrl) | |
static | RequestHeaderFieldsWithCookies(NSHttpCookie[]) |