Click or drag to resize

IFolderCreateFolderAsync Method

IT Hit User File System
Creates a new folder in the remote storage.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 8.0.26019.0-Beta+92e3f56e17dbfd6ebbef85925c0684282db3d967
Syntax
Task<byte[]> CreateFolderAsync(
	IFolderMetadata folderMetadata,
	IOperationContext operationContext,
	IInSyncResultContext inSyncResultContext,
	CancellationToken cancellationToken = null
)

Parameters

folderMetadata
Type: ITHit.FileSystemIFolderMetadata
Information about the new folder.
operationContext
Type: ITHit.FileSystemIOperationContext
inSyncResultContext
Type: ITHit.FileSystemIInSyncResultContext
If the SetInSync property is set to true the item is converted to a placeholder and is marked as in-sync. Otherwise the item remains a regular folder. The SetInSync property is true by default.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: TaskByte
Remote storage item ID of a newly created folder or null if the remote storage does not provide item ID. See RemoteStorageItemId description for more details about the remote storage item ID.
Remarks

If this method completes without exceptions and the SetInSync property of the inSyncResultContext parameter is set to true the item is converted to a placeholder and is marked as in-sync. Otherwise, the folder is not converted to a placeholder and remains a regular folder.

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

See Also