FileAttributes enumeration

Applies to Windows and Windows Phone

Describes the attributes of system file or folder.

Syntax


public enum FileAttributes

Attributes

[Flags()]
[Version(0x06020000)]

Members

The FileAttributes enumeration has these members.

MemberValueDescription
Normal | normal0

The item is normal.

ReadOnly | readOnly1

The item is read only.

Directory | directory16

The item is a directory.

Archive | archive32

The item is archived.

Temporary | temporary256

The item is a temporary file.

LocallyIncomplete | locallyIncomplete512

The item is locally incomplete. Windows only.

Remarks

The FileAttributes enumeration is used with the IStorageItem.Attributes, StorageFile.Attributes, and StorageFolder.Attributes properties.

The enum values match the Win32 file type attributes so it corresponds to those values which are flags which are base 2.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft