Uri.Canonicalize Method

Definition

Caution

The method has been deprecated. It is not used by the system. https://go.microsoft.com/fwlink/?linkid=14202

Caution

Uri.Canonicalize has been deprecated and is not supported.

Caution

The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202

Converts the internally stored URI to canonical form.

C#
[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 ();
C#
[System.Obsolete("Uri.Canonicalize has been deprecated and is not supported.")]
protected virtual void Canonicalize ();
C#
[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 ();
C#
protected virtual void Canonicalize ();
Attributes

Exceptions

This instance represents a relative URI, and this method is valid only for absolute URIs.

The URI is incorrectly formed.

Remarks

Stores the canonical version of the URI internally.

Applies to

Producto Versiones (Obsoleto)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1)
.NET Standard (2.0, 2.1)