ItemCommandExecute Method (IMItem)
source object of command
Executes the command.
Syntax
Sub ItemCommandExecute( _
   ByVal _pSourceObject As Object _
) 
void ItemCommandExecute( 
   object _pSourceObject
)
procedure ItemCommandExecute( 
    _pSourceObject: TObject
); 
void ItemCommandExecute( 
   IUnknown* _pSourceObject
) 

Parameters

_pSourceObject
source object of command
Example

Here is example of how to add command to the playlist item:

Dim myIndex As Integer = -1
Dim myItem As MItem
Dim strPath As String
Dim dblPos As Double
myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem)
Dim myTargetItem As MItem
myPlaylist.PlaylistCommandAdd("mute", "true", myItem, myIndex, myTargetItem)
myTargetItem.ItemCommandExecute(myPlaylist)
int myIndex = -1;
MItem myItem;
string strPath;
double dblPos;
myPlaylist.PlaylistGetByIndex(1, out dblPos, out strPath, out myItem);
MItem myTargetItem;
myPlaylist.PlaylistCommandAdd("mute", "true", myItem, ref myIndex, out myTargetItem);
myTargetItem.ItemCommandExecute(myPlaylist);
var
myIndex: integer;
myItem, myTargetItem: MItem;
strPath: widestring;
dblPos: double;
begin
myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem);
myPlaylist.PlaylistCommandAdd('mute', 'true', myItem, myIndex, myTargetItem);
myTargetItem.ItemCommandExecute(myPlaylist);
end;
See Also

Reference

IMItem Interface
IMItem Members