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

public enum class NameCollisionOption  

Members

Member Value Description
FailIfExists Return an error if another file or folder exists with the same name and abort the operation.
GenerateUniqueName Automatically generate a unique name by appending a number to the name of the file or folder.
ReplaceExisting 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.

Requirements

Namespace: Windows.Storage

Metadata: windows.winmd

See also

Reference

Windows.Storage Namespace