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: 7.1.23701.0
Syntax
Task LockAsync(
	LockMode lockMode = LockMode.Manual,
	CancellationToken cancellationToken = null
)

Parameters

lockMode (Optional)
Type: ITHit.FileSystem.WindowsLockMode
Indicates automatic or manual lock.
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 locked. For example when update, lock, unlock operation is in progress.
See Also