IServerNotificationsUpdateAsync Method |
IT Hit User File System
Updates a file or folder on this virtual drive.
This method automatically hydrates and dehydrates files.
Namespace:
ITHit.FileSystem
Assembly:
ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 7.0.22158.0-Beta
SyntaxTask<bool> UpdateAsync(
IFileSystemItemMetadata itemInfo,
bool autoHydration = true
)
Function UpdateAsync (
itemInfo As IFileSystemItemMetadata,
Optional autoHydration As Boolean = true
) As Task(Of Boolean)
Task<bool>^ UpdateAsync(
IFileSystemItemMetadata^ itemInfo,
bool autoHydration = true
)
abstract UpdateAsync :
itemInfo : IFileSystemItemMetadata *
?autoHydration : bool
(* Defaults:
let _autoHydration = defaultArg autoHydration true
*)
-> Task<bool>
Parameters
- itemInfo
- Type: ITHit.FileSystemIFileSystemItemMetadata
New file or folder info. - autoHydration (Optional)
- Type: SystemBoolean
Automatically hydrates and dehydrates file.
Return Value
Type:
TaskBooleanTrue if the file was updated. False - otherwise, for example if the item does not exist in the user file system.
RemarksCall this method from your remote storage monitor when a file or folder is updated in the remote storage.
This method failes if the file or folder in user file system is modified (not in-sync with the remote storage).
Because of the on-demand loading, the item may not exist in the user file system.
In this case the item will not be updated and this method returns false.
See Also