Click or drag to resize

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.1.26901.0
Syntax
Task<OperationResult> MoveToAsync(
	string userFileSystemNewPath
)

Parameters

userFileSystemNewPath
Type: SystemString
New path in the user file system.

Return Value

Type: TaskOperationResult
Operation 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