Network.GetByName(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.
Operates the same as InetAddress.getByName
except that host
resolution is done on this network.
[Android.Runtime.Register("getByName", "(Ljava/lang/String;)Ljava/net/InetAddress;", "GetGetByName_Ljava_lang_String_Handler")]
public virtual Java.Net.InetAddress? GetByName (string? host);
[<Android.Runtime.Register("getByName", "(Ljava/lang/String;)Ljava/net/InetAddress;", "GetGetByName_Ljava_lang_String_Handler")>]
abstract member GetByName : string -> Java.Net.InetAddress
override this.GetByName : string -> Java.Net.InetAddress
Parameters
- host
- String
the hostName to be resolved to an address or null
.
Returns
- Attributes
Exceptions
if the address lookup fails.
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.