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)
Syntax
'Declaration
Public Sub New ( _
fileName As String _
)
public FileInfo(
string fileName
)
public:
FileInfo(
String^ fileName
)
new :
fileName:string -> FileInfo
public function FileInfo(
fileName : String
)
Parameters
- 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.
Remarks
You can specify either the fully qualified or the relative file name, but the security check gets the fully qualified name.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.