Uri.Canonicalize Uri.Canonicalize Uri.Canonicalize Uri.Canonicalize Method

定义

警告

此 API 现已过时。

将内部存储的 URI 转换为规范化格式。Converts the internally stored URI to canonical form.

protected:
 virtual void Canonicalize();
[System.Obsolete("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void Canonicalize ();
abstract member Canonicalize : unit -> unit
override this.Canonicalize : unit -> unit
Protected Overridable Sub Canonicalize ()

异常

此实例代表一个相对 URI,而此方法仅对绝对 URI 有效。This instance represents a relative URI, and this method is valid only for absolute URIs.

URI 的格式不正确。The URI is incorrectly formed.

注解

在内部存储 URI 的规范版本。Stores the canonical version of the URI internally.

适用于