PluginsRemove Method (MPreviewClass)
plugin to be removed
Removes the plugin.
Syntax
Public Overridable Sub PluginsRemove( _
   ByVal _pPlugin As Object _
) 
public virtual void PluginsRemove( 
   object _pPlugin
)
public procedure PluginsRemove( 
    _pPlugin: TObject
); virtual; 
public: virtual void PluginsRemove( 
   IUnknown* _pPlugin
) 

Parameters

_pPlugin
plugin to be removed
Example

Here is example of how to remove all plugins:

Dim myPlug As Object
Dim myCookie As Integer
Dim nCount As Integer
myPlaylist.PluginsGetCount(nCount)
For i As Integer = 0 To nCount - 1
myPlaylist.PluginsGetByIndex(i, myPlug, myCookie)
myPlaylist.PluginsRemove(myPlug)
Next
object myPlug;
int myCookie;
int nCount;
myPlaylist.PluginsGetCount(out nCount);
for (int i=0; i<nCount; i++)
{
myPlaylist.PluginsGetByIndex(i, out myPlug, out myCookie);
myPlaylist.PluginsRemove(myPlug);
}
var
myPlug: TObject;
nCount, i, myCookie: integer;
myPlugins: IMPlugins;
begin
myPlugins:= myPlaylist as IMPlugins;
myPlugins.PluginsGetCount(nCount);
for i:=0 to nCount-1 do
begin
myPlugins.PluginsGetByIndex(i, myPlug, myCookie);
myPlugins.PluginsRemove(myPlug);
end;
end;
See Also

Reference

MPreviewClass Class
MPreviewClass Members