UriHostNameType 枚举
定义
为 CheckHostName(String) 方法定义主机名类型。Defines host name types for the CheckHostName(String) method.
public enum class UriHostNameType
public enum UriHostNameType
type UriHostNameType =
Public Enum UriHostNameType
- 继承
字段
| Basic | 1 | 设置主机,但无法确定类型。The host is set, but the type cannot be determined. |
| Dns | 2 | 主机名是域名系统 (DNS) 样式主机名。The host name is a domain name system (DNS) style host name. |
| IPv4 | 3 | 主机名是网际协议 (IP) 第 4 版主机地址。The host name is an Internet Protocol (IP) version 4 host address. |
| IPv6 | 4 | 主机名是网际协议 (IP) 第 6 版主机地址。The host name is an Internet Protocol (IP) version 6 host address. |
| Unknown | 0 | 不提供主机名的类型。The type of the host name is not supplied. |
注解
UriHostNameType枚举定义 Uri.CheckHostName 方法可以返回的值。The UriHostNameType enumeration defines the values that the Uri.CheckHostName method can return.