Språk

RFC2965DomainAttributeHandler.DomainMatch(String, String) Method

Definition

Compares a host with a cookie domain using case-sensitive string comparisons.

[Android.Runtime.Register("domainMatch", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetDomainMatch_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual bool DomainMatch(string? host, string? domain);
[<Android.Runtime.Register("domainMatch", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetDomainMatch_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member DomainMatch : string * string -> bool
override this.DomainMatch : string * string -> bool

Parameters

host
String

The host name from which the cookie was received or to which it is being sent.

domain
String

The cookie Domain attribute to compare with the host.

Returns

true if the host equals the domain, or if the domain starts with a period and the host ends with the domain; otherwise, false.

Attributes

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