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: 7.1.23701.0
Syntax
Task<byte[]> CreateFolderAsync(
	IFolderMetadata folderMetadata,
	IInSyncResultContext inSyncResultContext = null,
	CancellationToken cancellationToken = null
)

Parameters

folderMetadata
Type: ITHit.FileSystemIFolderMetadata
Information about the new folder.
inSyncResultContext (Optional)
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