NameCollisionOption enumeration
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.
Syntax
var value = Windows.Storage.NameCollisionOption.generateUniqueName;
Attributes
- VersionAttribute(NTDDI_WIN8)
Members
The NameCollisionOption enumeration has these members.
| Member | Value | Description |
|---|---|---|
| GenerateUniqueName | generateUniqueName | 0 |
Automatically generate a unique name by appending a number to the name of the file or folder. |
| ReplaceExisting | 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. You can use Windows.Storage.AccessCache to manage the list of locations that are accessible to your app via the file picker. |
| FailIfExists | failIfExists | 2 |
Return an error if another file or folder exists with the same name and abort the operation. |
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
