Wipe a file with a feedback on operation progress and an autoreset event requese.
Namespace: LLCryptoLib.ShredAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
Visual Basic |
---|
Public Function WipeFile ( _
filePath As FileInfo, _
method As IShredMethod, _
cbe As CallbackEntry, _
phase As CallbackPoint, _
resEvent As AutoResetEvent, _
delete As Boolean _
) As Boolean |
Parameters
- filePath
- Type: System.IO..::..FileInfo
Complete file path of file to be wiped
- method
- Type: LLCryptoLib.Shred..::..IShredMethod
Shredding method
- cbe
- Type: LLCryptoLib..::..CallbackEntry
Callback entry point for feedback. The callback method will be called every 1024 bytes shredded. An integer will be passed to callback method with the current kilobyte being erased. For instance, if you want to erase a 200kb file, this delegate will call the method for 200 times passing to it integers from 1 to 200.
- phase
- Type: LLCryptoLib..::..CallbackPoint
The phase feedback message
- resEvent
- Type: System.Threading..::..AutoResetEvent
A stop operations request event. If set, the method stop current operation and returns false
- delete
- Type: System..::..Boolean
If false it just rewrites the file and filename. If true, rewrites and then delete
Return Value
True if the file has been successfully shredded
See Also