Udostępnij za pośrednictwem


InetSocketAddress.HostString Property

Definition

Returns the hostname, or the String form of the address if it doesn't have a hostname (it was created using a literal).

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

Property Value

the hostname, or String representation of the address.

Attributes

Remarks

Returns the hostname, or the String form of the address if it doesn't have a hostname (it was created using a literal). This has the benefit of <b>not</b> attempting a reverse lookup.

Added in 1.7.

Java documentation for java.net.InetSocketAddress.getHostString().

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