Mac Guides | Samples

MonoMac.Foundation.NSHttpCookie Constructor

Create a new cookie with the supplied name, value, path and domain.

Syntax

public NSHttpCookie (String name, String value, String path, String domain)

Parameters

name
Cookie's name. Cannot be null.
value
Cookie's value. Cannot be null.
path
Path where the cookie will be applied on the domain. Using "/" will send the cookie to every URL on the domain.
domain
Domain (e.g. xamarin.com) related to the cookie

Remarks

An ArgumentNullException will be thrown if either `name` or `value` are null.

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0