Uri.IsAbsoluteUri Uri.IsAbsoluteUri Uri.IsAbsoluteUri Uri.IsAbsoluteUri Property

定义

获取一个值,该值指示 Uri 实例是否为绝对 URI。Gets whether the Uri instance is absolute.

public:
 property bool IsAbsoluteUri { bool get(); };
public bool IsAbsoluteUri { get; }
member this.IsAbsoluteUri : bool
Public ReadOnly Property IsAbsoluteUri As Boolean

属性值

一个 Boolean 值。如果 true 实例是绝对 URI,则该值为 Uri;否则为 falseA Boolean value that is true if the Uri instance is absolute; otherwise, false.

注解

此属性是true如果在字符串或Uri传递到构造函数的实例可以解析为绝对Uri实例,其中包含一种方案、 一个颁发机构和的路径。This property is true if the string or Uri instance that was passed into the constructor can be parsed as an absolute Uri instance, which contains a scheme, an authority, and a path. 否则为Uri实例被视为相对和可能会省略方案或其他 URI 组件。Otherwise, the Uri instance is treated as relative and might omit the scheme or other URI components.

适用于