Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMPMedia3::getAttributeCountByType
The getAttributeCountByType method retrieves the number of attributes associated with the specified attribute type.
Syntax
Parameters
bstrType
[in] BSTR containing the type.
bstrLanguage
[in] BSTR containing the language. If the value is set to null or "" (empty string), the current locale string is used. Otherwise, the value must be a valid RFC 1766 language string such as "en-us".
plCount
[out] Pointer to a long containing the count of attributes that are associated with the type.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
| S_OK | The method succeeded. |
Remarks
This method is used to determine the number of attributes corresponding to a particular attribute name for a given media item. Index numbers can then be passed to the getItemInfoByType method. This is useful, for example, when a media item has been categorized under multiple genres.
Before calling this method, you must have read access to the library. For more information, see Library Access.
Windows Media Player 10 Mobile: This method always retrieves a long set to 0.
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.
See Also
| Previous | Next |