System.Shell.RecycleBin object

[The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]

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

Members

The System.Shell.RecycleBin object has these types of members:

Events

The System.Shell.RecycleBin object has these events.

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

Methods

The System.Shell.RecycleBin object has these 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 has these 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 KB, used by the content of the Recycle Bin.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
End of client support
Windows 7
End of server support
Windows Server 2008
IDL
Sidebar.idl
DLL
Sidebar.Exe (version 1.00 or later)