Ejemplo n.º 1
0
        /// <summary>
        /// Add a new FileSystemFolder or SearchConnector
        /// </summary>
        /// <param name="item">The folder to add to the library.</param>
        public void Add(ShellFileSystemFolder item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            nativeShellLibrary.AddFolder(item.NativeShellItem);
            nativeShellLibrary.Commit();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add a new FileSystemFolder or SearchConnector
        /// </summary>
        /// <param name="item">The folder to add to the library.</param>
        public void Add(ShellItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            nativeShellLibrary.AddFolder(item.ComInterface);
            nativeShellLibrary.Commit();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Add a new FileSystemFolder or SearchConnector
 /// </summary>
 /// <param name="item">The folder to add to the library.</param>
 public void Add(ShellFileSystemFolder item)
 {
     nativeShellLibrary.AddFolder(item.NativeShellItem);
     nativeShellLibrary.Commit();
 }