Compartir a través de


NSHttpCookie.CookieFromProperties(NSDictionary) Método

Definición

Método factory para crear cookies.

[Foundation.Export("cookieWithProperties:")]
public static Foundation.NSHttpCookie CookieFromProperties (Foundation.NSDictionary properties);
static member CookieFromProperties : Foundation.NSDictionary -> Foundation.NSHttpCookie

Parámetros

properties
NSDictionary

Diccionario con los valores de cookie.

Devoluciones

Atributos

Comentarios

Para crear instancias de NSHTTPCookie, debe pasar un NSDictionary.

Las claves reales deben ser uno de los campos estáticos de clave pública de esta clase (, , , KeyPathKeySecureKeyDomainKeyExpiresKeyCommentKeyVersionKeyOriginUrl, , KeyCommentUrl, , KeyDiscardy ). KeyMaximumAgeKeyPortKeyValueKeyName


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

Se aplica a