Language

HttpHost.ToHostString Method

Definition

Obtains the host string, without scheme prefix.

[Android.Runtime.Register("toHostString", "()Ljava/lang/String;", "")]
public string? ToHostString();
[<Android.Runtime.Register("toHostString", "()Ljava/lang/String;", "")>]
member this.ToHostString : unit -> string

Returns

The host name followed by : and the port number, unless the stored port is -1, in which case only the host name is returned.

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