Windows Media Player 11 SDK MediaCollection.removeĀ
Previous | Next |
MediaCollection.remove
The remove method removes an item from the media collection.
Syntax
Parameters
item
Media object to be removed.
delete
Boolean indicating whether to remove the item.
Return Values
This method does not return a value.
Remarks
This method deletes an item from the library. This method does not delete files from the user's computer.
To use this method, full access to the library is required. For more information, see Library Access.
Example Code
The following JScript example, after prompting the user, permanently deletes the first media item in the media collection by using MediaCollection.remove. The Player object was created with ID = "Player".
Requirements
Version: Windows Media Player version 7.0 or later.
Library: Use wmp.dll.
See Also
- Media Object
- MediaCollection Object
- MediaCollection.add
- Settings.mediaAccessRights
- Settings.requestMediaAccessRights
Previous | Next |