[This is preliminary documentation and is subject to change.]

Called just before the plugin is unloaded, e.g. to close buffers, abort operations etc.

Namespace: Tools.TotalCommanderT
Assembly: Tools.TotalCommander (in Tools.TotalCommander.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
protected virtual void OnContentPluginUnloading()
Visual Basic
Protected Overridable Sub OnContentPluginUnloading
Visual C++
protected:
virtual void OnContentPluginUnloading()
F#
abstract OnContentPluginUnloading : unit -> unit 
override OnContentPluginUnloading : unit -> unit 
JScript
protected function OnContentPluginUnloading()

Remarks

This function was added (to Total Commander plugin interface, not Managed plugin interface) by request from a user who needs to unload GDI+. It seems that GDI+ has a bug which makes it crash when unloading it in the DLL unload function, therefore a separate unload function is needed. The function is only called if the content plugin part of the file system plugin is used!
Note
Do not throw any other exceptions. Such exception will be passed to Total Commander which cannot handle it.

By default this method is implemented as do-nothing (empty) method and unlike majority of plugin implementing method it is not marked with MethodNotSupportedAttribute, Total Commander calls it and it does not throw NotSupportedException. Plugin authors are free to override this method, apply MethodNotSupportedAttribute on it and throw NotSupportedException whenever called.

Note
Total Commander does not call this function for true content plugins. Only for file system plugins supporting content as well.

Exceptions

ExceptionCondition
System..::..NotSupportedExceptionThe actual implementation is marked with MethodNotSupportedAttribute. See notes in remarks section.

See Also

Collapse/expand Version History

1.5.3

  • This method is new in version 1.5.3