This topic has not yet been rated - Rate this topic

DirectoryInfo.Name Property

May 02, 2013

Gets the name of this DirectoryInfo instance.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)
'Declaration
Public Overrides ReadOnly Property Name As String

Property Value

Type: System.String
The directory name.

This Name property returns only the name of the directory, such as "Bin". To get the full path, such as "c:\public\Bin", use the FullName property.

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.