directory class : Name getter
Description
Gets the name of the directory.
Syntax
directoryInstance.Name
Arguments
None
Return value
Class | Description |
string | The name of the directory. |
Sample code
1: | directory dir = new directory("c:\somewhere..."); |
2: | string directoryName = dir.Name; |
Notes
It's a wrapper of the System.IO.DirectoryInfo.Name property.