Creates an FileNotFoundException.

Namespace:  PostSharp
Assembly:  PostSharp.Core (in PostSharp.Core.dll)

Syntax

Visual Basic (Declaration)
Public Function CreateFileNotFoundException ( _
	fileName As String, _
	messageKey As String, _
	ParamArray arguments As Object() _
) As Exception
C#
public Exception CreateFileNotFoundException(
	string fileName,
	string messageKey,
	params Object[] arguments
)
Visual C++
public:
Exception^ CreateFileNotFoundException(
	String^ fileName, 
	String^ messageKey, 
	... array<Object^>^ arguments
)

Parameters

fileName
Type: System..::.String
Path of the file that was not found.
messageKey
Type: System..::.String
Key of the resource string containing the message. The message may contain arguments like {0}, {1}, ...
arguments
Type: array< System..::.Object >[]()[]
Arguments of the formatting string.

See Also