共用方式為


Uri.Escape 方法

定義

警告

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,就會發生這個例外狀況。

適用於