RecycleBinUtil Class

Manages the system's Recycle Bins.

Definition

Namespace: DevCase.ThirdParty.WindowsApiCodePack
Assembly: DevCase.net48.ThirdParty.WindowsApiCodePack (in DevCase.net48.ThirdParty.WindowsApiCodePack.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class RecycleBinUtil
Inheritance
Object    RecycleBinUtil

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

https://www.nuget.org/packages/WindowsAPICodePack

Example

This is a code example that demonstrates how to loop through recycled items.
C#
No code example is currently available or this language may not be supported.

Properties

MasterBin Gets the master recycle bin representation. The master Recycle Bin is the one that contains all the recycled items of all the recycle bins.

Methods

Clean Cleans the Recycle Bin of an specific Drive.
DeleteItem Permanently deletes a recycled Item.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetBinSize Gets the accumulated size (in bytes) of the recycle bin of an specific drive.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetItemsCount Gets the count of the items that are inside the recycle bin of an specific drive.
GetLastRecycledFile Gets the last recycled file that is inside the recycle bin of an specific drive.
GetLastRecycledFolder Gets the last recycled folder that is inside the recycle bin of an specific drive.
GetLastRecycledItem Gets the last recycled item that is inside the recycle bin of an specific drive.
GetRecycledFiles Gets all the recycled files that are inside the recycle bin of an specific drive.
GetRecycledFolders Gets all the recycled folders that are inside the recycle bin of an specific drive.
GetRecycledItems Gets all the recycled items that are inside the recycle bin of an specific drive.
GetType Gets the Type of the current instance.
(Inherited from Object)
InvokeItemVerb(ShellObject, ItemVerbs) Invokes a verb on a ShellObject item.
InvokeItemVerb(ShellObject, String) Invokes a custom verb on a ShellObject item.
ToString Returns a string that represents the current object.
(Inherited from Object)
UndeleteItem Undeletes a recycled Item.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also