UriKind UriKind UriKind UriKind Enum


定义不同类型的 URI。Defines the different kinds of URIs.

public enum class UriKind
public enum UriKind
type UriKind = 
Public Enum UriKind


Absolute Absolute Absolute Absolute 1

该 URI 是绝对的。The URI is absolute.

Relative Relative Relative Relative 2

该 URI 是相对的。The URI is relative.

RelativeOrAbsolute RelativeOrAbsolute RelativeOrAbsolute 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: