Moves a file to the Windows Recycle Bin.
Namespace: System.ExtensionsAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
[ObsoleteAttribute("Replaced with functionality in DotNetLib.IO.FileInfoExtensions",
true)]
public static void MoveToRecycleBin(
string fileName,
bool showConfirmationDialog
) |
Visual Basic |
---|
<ObsoleteAttribute("Replaced with functionality in DotNetLib.IO.FileInfoExtensions",
true)>
Public Shared Sub MoveToRecycleBin (
fileName As String,
showConfirmationDialog As Boolean
) |
Visual C++ |
---|
public:
[ObsoleteAttribute(L"Replaced with functionality in DotNetLib.IO.FileInfoExtensions",
true)]
static void MoveToRecycleBin(
String^ fileName,
bool showConfirmationDialog
) |
F# |
---|
[<ObsoleteAttribute("Replaced with functionality in DotNetLib.IO.FileInfoExtensions",
true)>]
static member MoveToRecycleBin :
fileName : string *
showConfirmationDialog : bool -> unit
|
Parameters
- fileName
- Type: System..::..String
The name of the file to be moved to the Recycle Bin.
- showConfirmationDialog
- Type: System..::..Boolean
if set to true, a confirmation dialog will be displayed before deleting the file.
See Also