UriFormatException Constructor (String, Exception)
Collapse the table of content
Expand the table of content

UriFormatException Constructor (String, Exception)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the UriFormatException class with the specified message and a reference to the inner exception that is the cause of this exception.

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

public UriFormatException(
	string textString,
	Exception e


Type: System.String
The error message string.
Type: System.Exception
The exception that is the cause of the current exception. If the e parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

The UriFormatException constructor initializes the UriFormatException instance with the Message property set to the value of textString. and an exception that is thrown as a direct result of a previous exception.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft