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

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

MethodDescription
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.

PropertyAccess typeDescription

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.

EventDescription
onRecycleBinChanged

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

 

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
IDLSidebar.idl
DLLSidebar.Exe version 1.0 or later

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK

Community Additions

Show: