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.4.27341.0
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
Operation result, indicating if the operation was successfull and how many items was affected. If operation failed contains reason for the failure.
Exceptions
ExceptionCondition
ClientLockFailedException Thrown when a file can not be locked. For example when update, lock, unlock operation is in progress.
See Also