UriKind 枚举

定义

定义不同类型的 URI。

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

字段

名称 说明
RelativeOrAbsolute 0

URI 类型不确定。

Absolute 1

URI 是绝对的。

Relative 2

URI 是相对的。

注解

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

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

适用于