System.IO.File.GetAttributes Method

Gets the System.IO.FileAttributes of the file on the path.

Syntax

public static FileAttributes GetAttributes (string path)

Parameters

path
The path to the file.

Returns

The System.IO.FileAttributes of the file on the path.

Remarks

The path parameter is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory. To obtain the current working directory, see Directory.GetCurrentDirectory.

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

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