/// <summary> /// Create new shell library instance /// </summary> /// <param name="locationPath">Where to create</param> /// <param name="name">the name of the library without the .library-ms</param> public void CreateShellLibrary(string locationPath, string name) { using (ShellLibrary shellLibrary = ShellLibrary.Create(name, locationPath)) { LibraryName = shellLibrary.FullName; } DefaultSaveFolder = string.Empty; FolderList.Clear(); ShellIcon = null; ListenToShellLibraryChange(); }
public static void CreateLibrary(string name) { using (ShellLibrary library = ShellLibrary.Create(name, true)) { } }