NetExtrasHostnameToIP Method |
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static IPAddress HostnameToIP(
string hostName,
bool asIPV4 = true
)
Public Shared Function HostnameToIP (
hostName As String,
Optional asIPV4 As Boolean = true
) As IPAddress
public:
static IPAddress^ HostnameToIP(
String^ hostName,
bool asIPV4 = true
)
static member HostnameToIP :
hostName : string *
?asIPV4 : bool
(* Defaults:
let _asIPV4 = defaultArg asIPV4 true
*)
-> IPAddress
Parameters
- hostName
- Type: SystemString
- asIPV4 (Optional)
- Type: SystemBoolean
Return Value
Type:
IPAddress
See Also