Specifies what to do if a file or folder renamed, moved, or copied and there is an existing file or folder with the same name in the desired location.
public enum class NameCollisionOption
| Member | Value | Description |
|---|---|---|
| FailIfExists | 2 | Return an error if another file or folder exists with the same name and abort the operation. |
| GenerateUniqueName | 0 | Automatically generate a unique name by appending a number to the name of the file or folder. |
| ReplaceExisting | 1 | Replace the existing file or folder. Your app must have permission to access the location that contains the existing file or folder. Access to a location can be granted in several ways, for example, by a capability declared in your application’s manifest, or by the user through the file picker. |
Namespace: Windows.Storage
Metadata: windows.winmd