UriKind 枚举

定义

定义不同类型的 URI。

C#
public enum UriKind
继承

字段

Absolute 1

该 URI 是绝对的。

Relative 2

该 URI 是相对的。

RelativeOrAbsolute 0

URI 类型不确定。

注解

绝对 URI 的特点是资源 (示例的完整引用: http://www.contoso.com/index.html) ,而相对 URI 依赖于以前定义的基 URI (示例: /index.html) 。

以下列表显示了一些使用枚举的 UriKind API:

适用于

产品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0