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
SyntaxTask<byte[]> CreateFolderAsync(
IFolderMetadata folderMetadata,
IInSyncResultContext inSyncResultContext = null,
CancellationToken cancellationToken = null
)
Function CreateFolderAsync (
folderMetadata As IFolderMetadata,
Optional inSyncResultContext As IInSyncResultContext = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Byte())
Task<array<unsigned char>^>^ CreateFolderAsync(
IFolderMetadata^ folderMetadata,
IInSyncResultContext^ inSyncResultContext = nullptr,
CancellationToken cancellationToken = nullptr
)
abstract CreateFolderAsync :
folderMetadata : IFolderMetadata *
?inSyncResultContext : IInSyncResultContext *
?cancellationToken : CancellationToken
(* Defaults:
let _inSyncResultContext = defaultArg inSyncResultContext null
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<byte[]>
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