System.IO.FileInfo.DirectoryName Property

Gets a string representing the directory's full path.

Syntax

public string DirectoryName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

To get the parent directory as a System.IO.DirectoryInfo object, use the FileInfo.Directory property.

When first called, System.IO.FileInfo calls FileSystemInfo.Refresh and caches information about the file. On subsequent calls, you must call FileSystemInfo.Refresh to get the latest copy of the information.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0