PlaylistGetCount Method (MPlaylistClass)
number of items in playlist
total playlist duration
Gets the number of the playlist items and the total playlist duration.
Syntax
Public Overridable Sub PlaylistGetCount( _
   ByRef _pnCount As Integer, _
   ByRef _pdblTotalDuration As Double _
) 
public virtual void PlaylistGetCount( 
   out int _pnCount,
   out double _pdblTotalDuration
)
public procedure PlaylistGetCount( 
   Out  _pnCount: Integer;
   Out  _pdblTotalDuration: Double
); virtual; 
public: virtual void PlaylistGetCount( 
   [PARAMFLAG::Out] int _pnCount,
   [PARAMFLAG::Out] double _pdblTotalDuration
) 

Parameters

_pnCount
number of items in playlist
_pdblTotalDuration
total playlist duration
Example

Here is example of how to remove all playlist items:

Dim nCount As Integer
Dim nDuration As Double
myPlaylist.PlaylistGetCount(nCount, nDuration)
For i As Integer = 0 To nCount - 1
myPlaylist.PlaylistRemoveByIndex(i, 0)
Next
int nCount;
double nDuration;
myPlaylist.PlaylistGetCount(out nCount, out nDuration);
for (int i=0; i<nCount; i++)
{
myPlaylist.PlaylistRemoveByIndex(i, 0);
}
var
myCount, i: integer;
myDuration: double;
begin
mPlaylist.PlaylistGetCount(myCount, myDuration);
for i:=0 to myCount-1 do
myPlaylist.PlaylistReemoveByIndex(i, 0);
end;
See Also

Reference

MPlaylistClass Class
MPlaylistClass Members