See Also: UriFormatException Members
The UriFormatException is thrown by the Uri class constructor if the supplied URI could not be correctly parsed. The format for a valid URI is defined in RFC 2396.
The text of the Exception.Message property indicates the reason that the exception was thrown.
This exception is not included in the tp://go.microsoft.com/fwlink/?LinkID=247912 or the Portable Class Library, but it is thrown by some members that are. To catch the exception in that case, write a catch statement for FormatException instead.