Udostępnij za pośrednictwem


URL.Host Property

Definition

Gets the host name of this URL, if applicable.

public string? Host { [Android.Runtime.Register("getHost", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getHost", "()Ljava/lang/String;", "")>]
member this.Host : string

Property Value

the host name of this URL.

Attributes

Remarks

Gets the host name of this URL, if applicable. The format of the host conforms to RFC 2732, i.e. for a literal IPv6 address, this method will return the IPv6 address enclosed in square brackets ('[' and ']').

Java documentation for java.net.URL.getHost().

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