Shell32UpdateRecycleBinIcon Method

Updates the Recycle Bin icon on the desktop to reflect the state of the systemwide Recycle Bin, for example if an error occurs during an EmptyRecycleBin(IntPtr, String, SHEmptyRecycleBinFlags) call.

But since the other Recycle Bin management functions will update this icon on their own, there's almost no reason why your applications would need to call this function explicitly.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", EntryPoint = "SHUpdateRecycleBinIcon")]
public static bool UpdateRecycleBinIcon()

Return Value

Boolean
if operation succeeds, otherwise.

See Also