UriKind 枚举
定义
定义不同类型的 URI。Defines the different kinds of URIs.
public enum class UriKind
public enum UriKind
type UriKind =
Public Enum UriKind
- 继承
字段
| Absolute | 1 | 该 URI 是绝对的。The URI is absolute. |
| Relative | 2 | 该 URI 是相对的。The URI is relative. |
| RelativeOrAbsolute | 0 | URI 类型不确定。The URI kind is indeterminate. |
注解
绝对 Uri 的特征是对资源 (示例: http://www.contoso.com/index.html) ,而相对 URI 依赖于先前定义的基 uri (示例: /index.html) 。Absolute URIs are characterized by a complete reference to the resource (example: http://www.contoso.com/index.html), while a relative URI depends on a previously defined base URI (example: /index.html).
以下列表显示了一些使用枚举的 Api UriKind :The following list shows some APIs that use the UriKind enum:
- Uri.Uri(String, UriKind)
- Uri.IsWellFormedUriString(String, UriKind)
- Uri.TryCreate(String, UriKind, Uri)