August 2003
Intermediate to advanced
928 pages
32h 1m
English
FileAttributes
This enumeration represents the various attributes a file can have in the .NET environment; many, if not most, of these attributes parallel the standard Win32 filesystem attributes of the same name.
public enum FileAttributes { ReadOnly = 0x00000001, Hidden = 0x00000002, System = 0x00000004, Directory = 0x00000010, Archive = 0x00000020, Device = 0x00000040, Normal = 0x00000080, Temporary = 0x00000100, SparseFile = 0x00000200, ReparsePoint = 0x00000400, Compressed = 0x00000800, Offline = 0x00001000, NotContentIndexed = 0x00002000, Encrypted = 0x00004000 }
System.Object
→
System.ValueType
→
System.Enum(System.IComparable, System.IFormattable,
System.IConvertible)
→
FileAttributes
File.GetAttributes( ),
FileSystemInfo.Attributes
File.SetAttributes( ),
FileSystemInfo.Attributes