FileSystemInfo.Name Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the Name property gets the name of the directory.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.StringA string that is the name of the parent directory, the name of the last directory in the hierarchy, or the name of a file, including the file name extension.
Show: