This function is called when a clip is remved from Screen Monkey and performs any cleaning up of the clip.
Namespace:
ScreenMonkey.ClipsAssembly: ScreenMonkey.Clips (in ScreenMonkey.Clips.dll) Version: 3.2.0.0 (3.3.1.4)
Syntax
| C# |
|---|
public virtual void Remove() |
| Visual Basic (Declaration) |
|---|
Public Overridable Sub Remove |
| Visual C++ |
|---|
public: virtual void Remove() |
Remarks
Overrride to perform any functionality to clenup the clip. If you have overriden CleanupTempFolder to
return false then you should delete the temporary folder here to stop files remaining.
Examples
Deletes the temporary clip folder and all the files.
CopyC#
public virtual bool CleanupTempFolder { get { return false; } } public override void Remove() { try { if (ClipTempFolder is DirectoryInfo) { ClipTempFolder.Refresh(); if (ClipTempFolder.Exists) { ClipTempFolder.Delete(true); } } } catch (Exception ex) { //Report this error. OnUnhandledException(ex); } }