Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

System.Object
   System.Exception
      System.SystemException
         System.FormatException
            System.UriFormatException

[Visual Basic]
<Serializable>
Public Class UriFormatException
   Inherits FormatException
[C#]
[Serializable]
public class UriFormatException : FormatException
[C++]
[Serializable]
public __gc class UriFormatException : public FormatException
[JScript]
public
   Serializable
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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft