Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileNotFoundException Constructor (String, String)

Initializes a new instance of the FileNotFoundException class with its message string set to message, specifying the file name that cannot be found, and its HRESULT set to COR_E_FILENOTFOUND.

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

public FileNotFoundException (
	string message,
	string fileName
)
public FileNotFoundException (
	String message, 
	String fileName
)
public function FileNotFoundException (
	message : String, 
	fileName : String
)

Parameters

message

A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

fileName

A String containing the full name of the file with the invalid image.

The constructor initializes the Message property of the new instance using message and the FileName property using fileName.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

Show:
© 2014 Microsoft