PluginsGetCount Method (MItemClass)
number of plugins
Gets the number of plugins.
Syntax
Public Overridable Sub PluginsGetCount( _
   ByRef _pnCount As Integer _
) 
public virtual void PluginsGetCount( 
   out int _pnCount
)
public procedure PluginsGetCount( 
   Out  _pnCount: Integer
); virtual; 
public: virtual void PluginsGetCount( 
   [PARAMFLAG::Out] int _pnCount
) 

Parameters

_pnCount
number of plugins
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

MItemClass Class
MItemClass Members