Windows Media Player SDK banner art
PreviousNext

MediaCollection.remove

The remove method removes an item from the media collection.

Syntax

player.mediaCollection.remove(item, delete)

Parameters

  item

Media object to be removed.

  delete

Boolean indicating whether to delete the media item.

Return Values

This method does not return a value.

Remarks

This method deletes an item from the content index. It also deletes the file from the hard drive if the file is local. The user is presented with a confirmation dialog box to determine whether he wants the item deleted from the database and from the local disk.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.