System.IO.FileInfo.Name Property

Gets the name of the file.

Syntax

public override string Name { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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.

The name of the file includes the file extension.

Requirements

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