Share via


Windows Media Player 11 SDK IWMPMedia.getItemInfoByAtom (VB and C#) 

Windows Media Player SDK banner art

Previous Next

IWMPMedia.getItemInfoByAtom (VB and C#)

The getItemInfoByAtom method returns the value of the attribute with the specified index number.

[Visual Basic]
Function getItemInfoByAtom(
  lAtom As Integer
) As String

[C#]
string getItemInfoByAtom (
  int lAtom
);

Parameters

lAtom

A System.Int32 that specifies the index at which the requested attribute resides within the set of available attributes.

Return Value

A System.String that is the value of the attribute.

Remarks

This method can be used to retrieve metadata for a specific media item by using an attribute index number. The attributeCount property can be used to determine the number of attributes available for the media item.

The getMediaAtom method of the IWMPMediaCollection interface can also be used to retrieve the index of a particular attribute. This technique is generally more efficient than the getItemInfo or getItemInfoByType methods when working with large playlists.

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