file class : DirectoryName getter
Description
Gets a string that represent the absolute path of the parent directory.
Syntax
fileInstance.DirectoryName
Arguments
None
Return value
Class | Description |
string | Absolute path of the parent directory. |
Sample code
1: | file f = new file("c:\somewhere..."); |
2: | string dirPath = f.DirectoryName; |
Notes
It's a wrapper of the System.IO.FileInfo.DirectoryName property.