Uri::CheckHostName Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the specified host name is a valid DNS name.
Assembly: System (in System.dll)
Parameters
- name
- Type: System::String
The host name to validate. This can be an IPv4 or IPv6 address or an Internet host name.
Return Value
Type: System::UriHostNameTypeA UriHostNameType that indicates the type of the host name. If the type of the host name cannot be determined or if the host name is nullptr or a zero-length string, this method returns Unknown.
Show: