Share via


StringCollection.getItemInfo method

[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 getItemInfo method retrieves the string corresponding to the specified StringCollection item index and name.

Syntax

strRetVal = StringCollection.getItemInfo(
  index,
  name
)

Parameters

index [in]

Number (long) specifying the zero-based index of the StringCollection item from which to get the attribute.

name [in]

String containing the attribute name.

Return value

This method returns a String representing the value of the specified attribute. For attributes whose underlying value is Boolean, it returns the string "true" or "false".

Remarks

To retrieve attributes with multiple values and attributes with complex values, use the getItemInfoByType method.

To use this method, read access to the library is required. For more information, see Library Access.

Requirements

Requirement Value
Version
Windows Media Player 11.
DLL
Wmp.dll

See also

StringCollection.getItemInfoByType

StringCollection Object