GDStorageFileRenameAsync Method (String, NameCollisionOption) |
Namespace: GD
public IAsyncAction RenameAsync( string desiredName, NameCollisionOption option )
The desired, new name of the current item.
If there is an existing item in the current file's location that already has the specified desiredName, the specified NameCollisionOption determines how BlackBerry Dynamics responds to the conflict.
Exception | Condition |
---|---|
Exception | (C# equivalent: System.COMException) File cannot be renamed. HResult E_FAIL. |
AccessDeniedException | (C# equivalent: System.UnauthorizedAccessException) Secure storage was remotely wiped or directory with the same name already exists. |
InvalidArgumentException | (C# equivalent: System.ArgumentException) The name contains invalid characters, or the format of the path is incorrect. Check the value of desiredName. |