Specifies what to do if a file with the desired name already exists in the current folder.
public enum class CreationCollisionOption
| Member | Value | Description |
|---|---|---|
| FailIfExists | 2 | Create the new file or folder with the desired name, or returns an error if a file or folder already exists with that name. |
| GenerateUniqueName | 0 | Create the new file or folder with the desired name, or automatically appends a number if a file or folder already exists with that name. |
| OpenIfExists | 3 | Create the new file or folder with the desired name, or returns an existing item if a file or folder already exists with that name. |
| ReplaceExisting | 1 | Create the new file or folder with the desired name, and replaces any file or folder that already exists with that name. |
Namespace: Windows.Storage
Metadata: windows.winmd