FileFormatException Constructor (Uri)

FileFormatException.FileFormatException(Uri) Constructor

Creates a new instance of the FileFormatException class with a source URI value.

Namespace: System.IO
Assembly: WindowsBase (in windowsbase.dll)

public FileFormatException (
	Uri sourceUri
)
public FileFormatException (
	Uri sourceUri
)
public function FileFormatException (
	sourceUri : Uri
)
You cannot use constructors in XAML.

Parameters

sourceUri

The Uri value of the file that caused this error.

This constructor initializes the Message property of the new FileFormatException instance to a system-supplied message that describes the error and includes the file name, such as "The file 'sourceUri' does not conform to the expected file format specification." This message takes into account the current system culture.

The SourceUri property is initialized using the sourceUri parameter.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft