IServerNotificationsMoveToAsync Method (String) |
IT Hit User File System
Moves the file or folder placeholder in the user file system.
This method succeeds only if source is loaded in to user file system and target parent folder exists and is not offline.
Namespace:
ITHit.FileSystem
Assembly:
ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 8.4.27341.0
Syntax Task<OperationResult> MoveToAsync(
string userFileSystemNewPath
)
Function MoveToAsync (
userFileSystemNewPath As String
) As Task(Of OperationResult)
Task<OperationResult^>^ MoveToAsync(
String^ userFileSystemNewPath
)
abstract MoveToAsync :
userFileSystemNewPath : string -> Task<OperationResult>
Parameters
- userFileSystemNewPath
- Type: SystemString
New path in the user file system.
Return Value
Type:
TaskOperationResultOperation result, indicating if the operation was successfull and how many items was affected. If operation failed contains a reason for the failure.
Remarks
This method can move items that are modified in user file system (not In-Sync).
This method moves the item only if the source item exists in the user file system and the target item parent folder exists and is not offline.
If the source item does not exists in the user file system (not synched because of on-demand population), this method returns NotFound.
In this case, you must create a new item by calling CreateAsync(IFileSystemItemMetadata) method at the new location.
If the target parent folder does not exists or is offline, this method does not move the item and returns TargetNotFound.
In this case, if the source item exists, you must delete the source item by calling DeleteAsync method.
See Also