Click or drag to resize

IClientNotificationsLockAsync Method

IT Hit User File System
Locks the file in the remote storage. When this method is called the Engine calls the LockAsync(LockMode, IOperationContext, CancellationToken) method.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 8.0.26019.0-Beta+92e3f56e17dbfd6ebbef85925c0684282db3d967
Syntax
Task<OperationResult> LockAsync(
	LockMode lockMode = LockMode.Manual,
	CancellationToken cancellationToken = null
)

Parameters

lockMode (Optional)
Type: ITHit.FileSystemLockMode
Indicates automatic or manual lock.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

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