An exception class used when an invalid Uniform Resource Identifier is detected.
Object
Exception
URIFormatException
URLFormatException
[Visual Basic] Public Class URLFormatException Inherits URIFormatException [C#] public class URLFormatException : URIFormatException [C++] public __gc class URLFormatException : public URIFormatException [JScript] public class URLFormatException extends URIFormatException
The URLFormatException is thrown by any method that takes a URI or URI prefix as one of its parameters and the URI is malformed in someway, such as the following URI: "http://skj-\sdf\/\."
Namespace: System.Net
Assembly: System.net.dll