FileInfo Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path.

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

public FileInfo(
	string fileName


Type: System..::..String
The fully qualified name of the new file, or the relative file name. Do not end the path with the directory separator character.

You can specify either the fully qualified or the relative file name, but the security check gets the fully qualified name.