Share via


Windows Media Player 11 SDK MediaCollection.getMediaAtom 

Windows Media Player SDK banner art

Previous Next

MediaCollection.getMediaAtom

The getMediaAtom method retrieves the index at which a specified attribute resides within the set of available attributes.

Syntax

  

Parameters

attribute

String containing the attribute name. For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference.

Return Values

This method returns a Number (long).

Remarks

The index number retrieved with this method can be passed to the Media**.getItemInfoByAtom** method to access attribute values. This technique is generally more efficient when working with large playlists than accessing an attribute value by name through Media**.getItemInfo** or Media**.getItemInfoByType**.

To use this method, read access to the library is required. For more information, see Library Access.

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next