UriFormatException Class
Collapse the table of content
Expand the table of content

UriFormatException Class

The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected.

For a list of all members of this type, see UriFormatException Members.


[Visual Basic]
Public Class UriFormatException
   Inherits FormatException
public class UriFormatException : FormatException
public __gc class UriFormatException : public FormatException
class UriFormatException extends FormatException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The UriFormatException is thrown by the Uri class constructor if the supplied URI could not correctly parsed. The format for a valid URI is defined in RFC 2396.

The text of the Message property indicates the reason the exception was thrown.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System (in System.dll)

See Also

UriFormatException Members | System Namespace

© 2015 Microsoft