Uri.Canonicalize Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

This API supports the product infrastructure and is not intended to be used directly from your code.

Converts the internally stored URI to canonical form.

Namespace:   System
Assembly:  System (in System.dll)

[ObsoleteAttribute("The method has been deprecated. It is not used by the system. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void Canonicalize()

Exception Condition

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


The URI is incorrectly formed.

Stores the canonical version of the URI internally.

.NET Framework
Available since 1.1
Return to top