ApplicationDataStorageHelper.TryRenameItemAsync(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Rename an item.
public System.Threading.Tasks.Task<bool> TryRenameItemAsync (string itemPath, string newName);
abstract member TryRenameItemAsync : string * string -> System.Threading.Tasks.Task<bool>
override this.TryRenameItemAsync : string * string -> System.Threading.Tasks.Task<bool>
Public Function TryRenameItemAsync (itemPath As String, newName As String) As Task(Of Boolean)
Parameters
- itemPath
- String
The path to the target item.
- newName
- String
The new nam for the target item.
Returns
Waiting task until completion.