Click or drag to resize

CodedFileExistsException Constructor (String, String)

[This is preliminary documentation and is subject to change.]

Initializes a new instance of the CodedFileExistsException class with with its message string set to message, specifying the file name that already exists, its HRESULT set to COR_E_IO.

Namespace:  NerdyDuck.CodedExceptions.IO
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public CodedFileExistsException(
	string message,
	string fileName
)
View Source

Parameters

message
Type: SystemString
A description of 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
Type: SystemString
The full name of the file that already exists.
Remarks
The constructor initializes the Message property of the new instance using message and the FileName property using fileName.
See Also