FileSystemInfo.Name Property

May 11, 2014

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)

'Declaration
Public MustOverride ReadOnly Property Name As String

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:
© 2014 Microsoft