Click or drag to resize

IFolderWriteAsync Method

IT Hit User File System
Updates this folder info in the remote storage.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 5.6.16274.0-Beta2
Syntax
Task WriteAsync(
	IFolderMetadata folderMetadata,
	IOperationContext operationContext = null,
	IInSyncResultContext inSyncResultContext = null,
	CancellationToken cancellationToken = null
)

Parameters

folderMetadata
Type: ITHit.FileSystemIFolderMetadata
New folder information.
operationContext (Optional)
Type: ITHit.FileSystemIOperationContext
Provides information about the environment.
inSyncResultContext (Optional)
Type: ITHit.FileSystemIInSyncResultContext
If the SetInSync property is set to true the item is marked as in-sync. Otherwise the item remains in the not in-sync state. The SetInSync property is true by default.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: Task
A task object that can be awaited.
Remarks

If this method completes without exceptions and the SetInSync property of the inSyncResultContext parameter is set to true the item is marked as in-sync when the operation completes. Otherwise, the item is left in the not in-sync state.

Setting the SetInSync property of the inSyncResultContext parameter to false has the same affect as throwing an exception inside this method.

See Also