packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/Common/ShellLibrary.cs
/// <summary>
/// Remove a folder or search connector
/// </summary>
/// <param name="item">The item to remove.</param>
/// <returns><B>true</B> if the item was removed.</returns>
Remove a folder or search connector
Remove a folder or search connector
public bool Remove(ShellFileSystemFolder item)
        {
            if (item == null) { throw new ArgumentNullException("item"); }
            try
            {
                nativeShellLibrary.RemoveFolder(item.NativeShellItem);
                nativeShellLibrary.Commit();
            }
            catch (COMException)
            {
                return false;
            }
            return true;
        }
public bool Remove ( ShellFileSystemFolder item ) { if ( item == null ) { throw new ArgumentNullException ( " " ) ; } try { nativeShellLibrary . RemoveFolder ( item . NativeShellItem ) ; nativeShellLibrary . Commit ( ) ; } catch ( COMException ) { return false ; } return true ; }
Remove a folder or search connector
Remove a folder or search connector
None
item
ShellFileSystemFolder
The item to remove.
The item to remove .