FileInfo Members
The following tables list the members exposed by the FileInfo type.
Public Constructors
Name | Description | |
---|---|---|
FileInfo | Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path. |
Public Properties
Name | Description | |
---|---|---|
Directory | Gets an instance of the parent directory. | |
DirectoryName | Gets a string representing the directory's full path. | |
Exists | Gets a value indicating whether a file exists. | |
Length | Gets the size, in bytes, of the current file. | |
Name | Gets the name of the file. |
Public Methods
Name | Description | |
---|---|---|
Create | Creates a file. | |
Delete | Permanently deletes a file. | |
ToString | Returns the path as a string. |