Share via


Windows Media Player 11 SDK IWMPStringCollection.Item (VB and C#) 

Windows Media Player SDK banner art

IWMPStringCollection.Item (VB and C#)

The Item method returns the string at the specified index.

[Visual Basic]
Function Item(
  lIndex As Integer
) As String

[C#]
string Item (
  int lIndex
);

Parameters

lIndex

A System.Int32 that is the index.

Return Value

A System.String that is the string at the specified index.

Remarks

The IWMPStringCollection interface is used to retrieve the set of values available for an attribute. For example, the IWMPMediaCollection.getAttributeStringCollection method can be used to retrieve an IWMPStringCollection interface representing all the values for the Genre attribute within the Audio media type. The Item method can then be used to iterate through all of the possible values for the Genre attribute.

To use this method, read access to the library is required. 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