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: 5.6.16274.0-Beta2
Syntax
Task UnlockAsync(
	bool unlockWriteBlockedFile = true,
	CancellationToken cancellationToken = null
)

Parameters

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: Task
A task object that can be awaited.
Exceptions
ExceptionCondition
ClientLockFailedException Thrown when a file can not be unlocked. For example when update, lock, unlock operation is in progress.
See Also