FileAttributes Enumeration
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Provides attributes for files and directories.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.IO
Assembly: System.IO (in System.IO.dll)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration FileAttributes
[FlagsAttribute]
public enum FileAttributes
[FlagsAttribute]
public enum class FileAttributes
[<FlagsAttribute>]
type FileAttributes
public enum FileAttributes
Members
Member name | Description | |
---|---|---|
ReadOnly | The file is read-only. | |
Hidden | The file is hidden, and thus is not included in an ordinary directory listing. | |
System | The file is a system file. That is, the file is part of the operating system or is used exclusively by the operating system. | |
Directory | The file is a directory. | |
Archive | The file is a candidate for backup or removal. | |
Normal | The file is a standard file that has no special attributes. This attribute is valid only if it is used alone. |
Remarks
You can get attributes for files and directories by calling the GetAttributes method, and you can set them by calling the SetAttributes method.