Uri.Escape 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Uri.Escape has been deprecated and is not supported.
注意
The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202
注意
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("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. https://go.microsoft.com/fwlink/?linkid=14202")]
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("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. https://go.microsoft.com/fwlink/?linkid=14202")>]
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 相对,则可能会出现此异常。