Share via


Windows Media Player 11 SDK Media.attributeCountĀ 

Windows Media Player SDK banner art

Previous Next

Media.attributeCount

The attributeCount property retrieves the number of attributes that can be queried and/or set for the media item.

Syntax

  
    
  

Possible Values

This property is a read-only Number (long).

Remarks

To retrieve the value of this property, read access to the library is required. For more information, see Library Access.

For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference.

Windows Media Player 10 Mobile: Attributes for a media item are available only during playback unless they are retrieved from the item through the media collection.

Example Code

The following JScript example uses Media.attributeCount to determine the number of attributes available in the current media item. The code uses that value to print a list of attribute names and values in an HTML text area, named myText. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next