Uri.Canonicalize Method

Definition

Warning

This API is now obsolete.

將內部儲存的 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. https://go.microsoft.com/fwlink/?linkid=14202")]
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")]
protected virtual void Canonicalize ();
[System.Obsolete("The method has been deprecated. It is not used by the system. https://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 ();
protected virtual void Canonicalize ();
abstract member Canonicalize : unit -> unit
override this.Canonicalize : unit -> unit
Protected Overridable Sub Canonicalize ()
Attributes

Exceptions

這個執行個體表示相對的 URI,而這個方法只適用於絕對 URI。This instance represents a relative URI, and this method is valid only for absolute URIs.

URI 的語式不正確。The URI is incorrectly formed.

Remarks

在內部儲存 URI 的標準版本。Stores the canonical version of the URI internally.

Applies to