Uri.Escape 方法
定义
注意
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
将路径部分中的任何不安全字符或保留字符转换为对应的十六进制字符表示形式。Converts any unsafe or reserved characters in the path component to their hexadecimal character representations.
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 ();
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 ();
[<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
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
Protected Overridable Sub Escape ()
- 属性
例外
从构造函数传来的 URI 无效。The URI passed from the constructor is invalid. 如果 URI 字符太多或 URI 是相对的,则会发生这种异常。This exception can occur if a URI has too many characters or the URI is relative.