Click or drag to resize
IGDStorageItemRenameAsync Method (String, NameCollisionOption)
Renames the current item. This method also specifies what to do if an existing item in the current item's location has the same name.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
IAsyncAction RenameAsync(
	string desiredName,
	NameCollisionOption option
)

Parameters

desiredName
Type: SystemString

The desired, new name of the current item.

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

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

Return Value

Type: IAsyncAction
No object or value is returned by this method when it completes.
See Also