Share via


Windows Media Player 11 SDK Error.itemĀ 

Windows Media Player SDK banner art

Previous Next

Error.item

The item method retrieves an ErrorItem object from the error queue.

Syntax

  

Parameters

index

Number (long) containing the index of the ErrorItem object to be retrieved.

Return Values

This method returns an ErrorItem object.

Remarks

Windows Media Player can generate a number of errors in response to an error condition. This method allows the retrieval of a specific error in the queue by using an index number. The index numbers for the error queue begin with zero.

You should set Settings.enableErrorDialogs to false if you choose to display custom error messages.

Example Code

The following JScript example uses the Error**.item** object in an event handler to alert the user to the most recent error. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next