NavigationManager.Uri 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定目前的 URI。 Uri一律以字串形式表示為絕對 URI。
public: property System::String ^ Uri { public:
System::String ^ get(); protected:
void set(System::String ^ value); };
C#
public string Uri { get; protected set; }
member this.Uri : string with get, set
Public Property Uri As String
設定 Uri 不會觸發 LocationChanged 事件。
產品 | 版本 |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |