列挙型

列挙型 (Windows.Storage 名前空間)

FileAttributes

@ [APIドキュメント]

public enum FileAttributes

Archive32The item is archived.
Directory16The item is a directory.
LocallyIncomplete512The item is locally incomplete. Windows only.
Normal0The item is normal. That is, the item doesn’t have any of the other values in the enumeration.
ReadOnly1The item is read-only.
Temporary256The item is a temporary file.

NameCollisionOption

@ [APIドキュメント]

public enum NameCollisionOption

FailIfExists2Raise 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.
GenerateUniqueName0Automatically 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).
ReplaceExisting1Replace the existing item if the file or folder already exists.