Windows Media Player 11 SDK IWMPMedia3.getAttributeCountByType (VB and C#)
Previous | Next |
IWMPMedia3.getAttributeCountByType (VB and C#)
The getAttributeCountByType method returns the number of attributes associated with the specified attribute type.
[Visual Basic] Function getAttributeCountByType( bstrType As String, bstrLanguage As String ) As Integer [C#] int getAttributeCountByType ( string bstrType, string bstrLanguage) ;
Parameters
bstrType
A System.String that is the attribute type.
bstrLanguage
A System.String that is the language. If the value is set to null or a zero-length string (""), the current locale string is used. Otherwise, the value must be a valid RFC 1766 language string such as "en-us".
Return Value
A System.Int32 that is the count of attributes that are associated with the type.
Remarks
This method is used to discover 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.
Requirements
Version: Windows Media Player 9 Series or later
Namespace: WMPLib
Assembly: Interop.WMPLib.dll (automatically generated by Visual Studio)
See Also
Previous | Next |