Uri.Escape 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202
警告
Uri.Escape has been deprecated and is not supported.
警告
The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202
將路徑元件中的任何不安全或保留字元轉換成十六進位字元表示。
protected:
virtual void Escape();
[System.Obsolete("The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void Escape ();
[System.Obsolete("Uri.Escape has been deprecated and is not supported.")]
protected virtual void Escape ();
[System.Obsolete("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void Escape ();
protected virtual void Escape ();
[<System.Obsolete("The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member Escape : unit -> unit
override this.Escape : unit -> unit
[<System.Obsolete("Uri.Escape has been deprecated and is not supported.")>]
abstract member Escape : unit -> unit
override this.Escape : unit -> unit
[<System.Obsolete("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member Escape : unit -> unit
override this.Escape : unit -> unit
abstract member Escape : unit -> unit
override this.Escape : unit -> unit
Protected Overridable Sub Escape ()
- 屬性
例外狀況
從建構函式傳遞的 URI 無效。 如果 URI 有太多字元或為相對 URI,就會發生這個例外狀況。