StorageFolder.RenameAsync(String, NameCollisionOption) | renameAsync(String, NameCollisionOption) method

This topic has not yet been rated - Rate this topic

Renames the current folder and specifies what to do if a folder with the same name already exists.

Syntax


storageFolder.renameAsync(desiredName, option).done( /* Your success and error handlers */ );

Parameters

desiredName

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The desired, new name for the current folder.

If there is an existing item in the current folder's location that already has the specified desiredName, the specified NameCollisionOption determines how Windows responds to the conflict.

option

Type: NameCollisionOption

The enum value that determines how Windows responds if the desiredName is the same as the name of an existing item in the current folder's location.

Return value

Type: IAsyncAction

No object or value is returned by this method when it completes.

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

See also

StorageFolder
RenameAsync(String)

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.