FileAttributes enumeration
Describes the attributes of system file or folder.
Syntax
var value = Windows.Storage.FileAttributes.normal;
Attributes
- FlagsAttribute()
- VersionAttribute(NTDDI_WIN8)
Members
The FileAttributes enumeration has these members.
| Member | Value | Description |
|---|---|---|
| Normal | normal | 0 |
The item is normal. |
| ReadOnly | readOnly | 1 |
The item is read only. |
| Directory | directory | 16 |
The item is a directory. |
| Archive | archive | 32 |
The item is archived. |
| Temporary | temporary | 256 |
The item is a temporary file. |
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 |
|
|
Metadata |
|
Build date: 5/16/2013
