Click or drag to resize

IFileSystemItemMetadataItemId Property

IT Hit User File System
Item identity which uniquely identifies file or folder withing your user file system.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 3.3.9602.0
byte[] ItemId { get; set; }

Property Value

Type: Byte

This field is an item identifier, which is unique withing your virtual file system. You will typically set it during folder listing inside GetChildrenAsync(String, IOperationContext, IFolderListingResultContext). The platform will store the item identifier together with the item. The Engine will provide the ItemId during each operation, passing it inside the GetFileSystemItemAsync(String, FileSystemItemType, Byte) method, so you can use if for your remote storage calls if needed.

On macOS this identifier should NOT change during the lifetime of the item. Including it should not change during the move operation.

On Windows the ItemId and CustomData share common memory which can be up to 4KB max in total.

If your remote storage does not provide an item identifier you can set this field to null. In this case you will map the user file system path, passed to GetFileSystemItemAsync(String, FileSystemItemType, Byte), to remote storage path and use it to identify your items in the remote storage.

See Also