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).

以下列表显示了一些使用UriKind枚举的 api:The following list shows some APIs that use the UriKind enum: