Share via


System.Shell.RecycleBin Object

Defines the properties, methods, and events used to expose Recycle Bin characteristics.

Members

The System.Shell.RecycleBin object defines the following members:

  • Methods
  • Properties
  • Events

Methods

The System.Shell.RecycleBin object defines the following methods.

Method Description
deleteItem

Deletes an item from the system by moving it to the Recycle Bin.

emptyAll

Deletes all items from the Recycle Bin.

showRecycleSettings

Displays the Recycle Bin Properties dialog.

 

Properties

The System.Shell.RecycleBin object defines the following properties.

Property Access type Description

fileCount

Read-only

Gets the number of files in the Recycle Bin.

folderCount

Read-only

Gets the number of folders in the Recycle Bin.

sizeUsed

Read-only

Gets the amount of space, in kilobytes (KB), used by the content of the Recycle Bin.

 

Events

The System.Shell.RecycleBin object defines the following event.

Event Description
onRecycleBinChanged

Event fired when the content of the Recycle Bin is modified.

 

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.0 or later

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK