NavLink.RelativeToCurrentUri 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 href 是否應該相對於目前 URI 來解析。
當 true,相對 href(例如「兄弟」)會根據目前路由的目錄路徑解析並呈現為根關係 URL(例如「/folder/sibling」)。
當 false (預設值)時,href 會從屬性值 as-is 呈現。
[Microsoft.AspNetCore.Components.Parameter]
public bool RelativeToCurrentUri { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.RelativeToCurrentUri : bool with get, set
Public Property RelativeToCurrentUri As Boolean
屬性值
- 屬性