IWMPPlaylist.attributeName (VB and C#)
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The attributeName property (the get_attributeName method in C#) gets the name of a playlist attribute specified by an index.
[Visual Basic]
ReadOnly Property attributeName(
lIndex As System.Int32
) As System.String
[C#]
System.String get_attributeName(
System.Int32 lIndex
);
Parameters
lIndex
A System.Int32 that is the index of the playlist attribute.
Return Value
A System.String that is the name of the playlist attribute.
Remarks
IWMPPlaylist.attributeName is a read-only property in Visual Basic that takes a parameter, while in C# it is referred to as the IWMPPlaylist.get_attributeName method.
The number of attributes associated with a playlist is returned by the IWMPPlaylist.attributeCount property.
The name returned by this property can be supplied to the setItemInfo or getItemInfo methods to specify or retrieve a value for the named attribute.
Before using this property, you must have read access to the library. For more information, see Library Access.
For more information about attributes supported by Windows Media Player, see the Attribute Reference.
Examples
See the attributeCount property for example code that uses this property.
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player 9 Series or later |
Namespace |
WMPLib |
Assembly |
|