CreationCollisionOption Enumeration

Specifies what to do if a file with the desired name already exists in the current folder.

Syntax

public enum class CreationCollisionOption  

Members

Member Value Description
FailIfExists 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 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 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 Create the new file or folder with the desired name, and replaces any file or folder that already exists with that name.

Requirements

Namespace: Windows.Storage

Metadata: windows.winmd

See also

Reference

Windows.Storage Namespace