InetSocketAddress.HostString Property
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.
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.