Click or drag to resize

IClientNotificationsUnlockAsync Method

IT Hit User File System
Unlocks the file in the remote storage.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 8.0.26019.0-Beta+92e3f56e17dbfd6ebbef85925c0684282db3d967
Task<OperationResult> UnlockAsync(
	bool unlockWriteBlockedFile = true,
	CancellationToken cancellationToken = null


unlockWriteBlockedFile (Optional)
Type: SystemBoolean
Unlock the file if it is write blocked. Set this parameter to true when calling from the file manager context menu. Set to false when calling from synchronization service, because you do not want to unlock files that are being opened for writing.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: TaskOperationResult
A task object that can be awaited.
ClientLockFailedException Thrown when a file can not be unlocked. For example when update, lock, unlock operation is in progress.
See Also