Name Property
Collapse the table of content
Expand the table of content

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.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

public abstract string Name { get; }

Property Value

Type: System.String
A 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft