Condividi tramite


ICookieSpec.Validate(ICookie, CookieOrigin) Method

Definition

Validate the cookie according to validation rules defined by the cookie specification.

[Android.Runtime.Register("validate", "(Lorg/apache/http/cookie/Cookie;Lorg/apache/http/cookie/CookieOrigin;)V", "GetValidate_Lorg_apache_http_cookie_Cookie_Lorg_apache_http_cookie_CookieOrigin_Handler:Org.Apache.Http.Cookies.ICookieSpecInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Validate (Org.Apache.Http.Cookies.ICookie? cookie, Org.Apache.Http.Cookies.CookieOrigin? origin);
[<Android.Runtime.Register("validate", "(Lorg/apache/http/cookie/Cookie;Lorg/apache/http/cookie/CookieOrigin;)V", "GetValidate_Lorg_apache_http_cookie_Cookie_Lorg_apache_http_cookie_CookieOrigin_Handler:Org.Apache.Http.Cookies.ICookieSpecInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Validate : Org.Apache.Http.Cookies.ICookie * Org.Apache.Http.Cookies.CookieOrigin -> unit

Parameters

cookie
ICookie

the Cookie to validate

origin
CookieOrigin

details of the cookie origin

Attributes

Exceptions

if the cookie is invalid

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to