1 out of 1 rated this helpful - Rate this topic

NameCollisionOption enumeration

Applies to Windows and Windows Phone

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

[Version(0x06020000)]

Members

The NameCollisionOption enumeration has these members.

MemberValueDescription
GenerateUniqueName | generateUniqueName0

Automatically generate a unique name by appending a number to the name of the file or folder.

ReplaceExisting | replaceExisting1

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 | failIfExists2

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

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.