ItemTypeGet Method (IMItem)
type of the item
Gets the playlist item type
Syntax
Sub ItemTypeGet( _
   ByRef _peType As eMItemType _
) 
void ItemTypeGet( 
   out eMItemType _peType
)
procedure ItemTypeGet( 
   Out  _peType: eMItemType
); 
void ItemTypeGet( 
   [PARAMFLAG::Out] eMItemType _peType
) 

Parameters

_peType
type of the item
Example

Here is example of how to get type of playlist item:

Dim myItem As MItem
Dim strPath As String
Dim dblPos As Double
myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem)
Dim _myObject as Object
pItem.ItemInnerGet(_myObject)
'let find out type of this object
Dim pType As eMItemType
DirectCast(_myObject, IMItem).ItemTypeGet(pType)
MItem pItem;
string strPath;
double dblPos;
myPlaylist.PlaylistGetByIndex(1, out dblPos, out strPath, out pItem);
object _myObject;
pItem.ItemInnerGet(out _myObject);
//let find out type of this object
eMItemType pType;
((IMItem)_myObject).ItemTypeGet(out pType);
var
myObject: TObject;
pType: eMItemType;
myItem, pItem: MItem;
strPath: widestring;
dblPos: double;
begin
myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, pItem);
pItem.ItemInnerGet(myObject);
myItem:= myObject as IMItem;
myItem.ItemTypeGet(pType);
end;
See Also

Reference

IMItem Interface
IMItem Members