Wipe a file with a feedback on operation progress

Namespace: LLCryptoLib.Shred
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public bool WipeFile(
	FileInfo filePath,
	IShredMethod method,
	CallbackEntry cbe,
	CallbackPoint phase,
	bool delete
)
Visual Basic
Public Function WipeFile ( _
	filePath As FileInfo, _
	method As IShredMethod, _
	cbe As CallbackEntry, _
	phase As CallbackPoint, _
	delete As Boolean _
) As Boolean
Visual C++
public:
bool WipeFile(
	FileInfo^ filePath, 
	IShredMethod^ method, 
	CallbackEntry^ cbe, 
	CallbackPoint^ phase, 
	bool delete
)

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