Uri.IsAbsoluteUri 屬性

定義

取得指出 Uri 執行個體是否為絕對的值。

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

屬性值

trueUri如果實例是絕對的,則為 , false 否則為 。

備註

如果傳遞至建構函式的字串或 Uri 實例可以剖析為絕對 Uri 實例,其中包含配置、授權單位和路徑,則此屬性 true 為 。 否則, Uri 實例會被視為相對的,而且可能會省略配置或其他 URI 元件。

適用於