列挙型 (Windows.Storage 名前空間)
FileAttributes
public enum FileAttributes
Archive | 32 | The item is archived. |
Directory | 16 | The item is a directory. |
LocallyIncomplete | 512 | The item is locally incomplete. Windows only. |
Normal | 0 | The item is normal. That is, the item doesn’t have any of the other values in the enumeration. |
ReadOnly | 1 | The item is read-only. |
Temporary | 256 | The item is a temporary file. |
NameCollisionOption
public enum NameCollisionOption
FailIfExists | 2 | Raise an exception of type System.Exception if the file or folder already exists.Methods that don’t explicitly pass a value from the NameCollisionOption enumeration use the FailIfExists value as the default when you try to create, rename, copy, or move a file or folder. |
GenerateUniqueName | 0 | Automatically append a number to the base of the specified name if the file or folder already exists.For example, if MyFile.txt already exists, then the new file is named MyFile (2).txt . If MyFolder already exists, then the new folder is named MyFolder (2) . |
ReplaceExisting | 1 | Replace the existing item if the file or folder already exists. |