Upgrading to the User File System v9
The User File System Engine v9 provides improvements in metadata properties storage, content eTag and metadata eTag storage as well as provides new user interface classes for tray programming.
1. The type of IFileSystemItemMetadata.Properties type changed from ICustomData to IPropertiesDictionary. Now you will fill IFileSystemItemMetadata.Properties list when creating metadata in Mapping.GetUserFileSystemItemMetadata() implementation. You will NOT save properties in EngineWindows.ItemsChanged like you did in previous version. The properties will be serialized and saved automatically. You still can save any custom data in EngineWindows.ItemsChanged event but this is optional in the new version. To upgrade properties storage to v9:
Fill the IFileSystemItemMetadata.Properties properties list when creating metadata:
public static IFileSystemItemMetadata GetUserFileSystemItemMetadata(Client.IHierarchyItem remoteStorageItem) { ... userFileSystemItem.Properties.Add("LockInfo", serverLock); ... }
Optionally add the PropertyChanged event if needed:
public static IFileSystemItemMetadata GetUserFileSystemItemMetadata(Client.IHierarchyItem remoteStorageItem) { ... userFileSystemItem.Properties.PropertyChanged += PropertyChanged; ... }
Remove the code that saves your properties from EngineWindows.ItemsChanged event. in Engine v9 properties are saved automatically.