FileAttributes Enumeration

Provides attributes for files and directories.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public enum FileAttributes

Remarks

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

Members

  Member name Description
Directory The file is a directory.
Hidden The file is hidden, and thus is not included in an ordinary directory listing.
Normal The file is normal and has no other attributes set. This attribute is valid only if used alone.
ReadOnly The file is read-only.

See Also

Reference

System.IO Namespace