Windows Media Player 11 SDK MediaCollection.setDeletedĀ
Previous | Next |
MediaCollection.setDeleted
The setDeleted method moves the specified media item to the deleted items folder.
Syntax
Parameters
item
Media object being moved.
true
Always specify this value.
Return Values
This method does not return a value.
Remarks
This method does not remove files from the user's computer.
To use this method, full access to the library is required. For more information, see Library Access.
Windows Media Player 10 Mobile: This method is not supported.
Example Code
The following JScript example uses MediaCollection.setDeleted to move a particular media item, stored in the variable named mediaObject, to the deleted items folder. The MediaCollection.isDeleted method first tests whether the item has already been deleted. The Player object was created with ID = "Player".
Requirements
Version: Windows Media Player version 7.0, Windows Media Player version 7.1, or Windows Media Player for Windows XP. This method is not supported for Windows Media Player 9 Series or later.
Library: Use wmp.dll.
See Also
- Media Object
- MediaCollection Object
- MediaCollection.isDeleted
- Settings.mediaAccessRights
- Settings.requestMediaAccessRights
Previous | Next |