HttpCookie.DomainMatches(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The utility method to check whether a host name is in a domain or not.
[Android.Runtime.Register("domainMatches", "(Ljava/lang/String;Ljava/lang/String;)Z", "")]
public static bool DomainMatches (string? domain, string? host);
[<Android.Runtime.Register("domainMatches", "(Ljava/lang/String;Ljava/lang/String;)Z", "")>]
static member DomainMatches : string * string -> bool
Parameters
- domain
- String
the domain name to check host name with
- host
- String
the host name in question
Returns
true if they domain-matches; false if not
- Attributes
Remarks
Java documentation for java.net.HttpCookie.domainMatches(java.lang.String, java.lang.String).
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.