Export (0) Print
Expand All

FileFormatException.SourceUri Property

Gets the name of a file that caused the FileFormatException.

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

public Uri SourceUri { get; }
/** @property */
public Uri get_SourceUri ()

public function get SourceUri () : Uri

Members of this class are either not typically used in XAML, or cannot be used in XAML.

Property Value

A Uri that represents the name the file that caused the exception.

If there was an error in obtaining the name the file that caused the exception, the return value is a null reference (Nothing in Visual Basic), and SourceUri.ToString returns an empty string.

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:
© 2014 Microsoft