Share via


IWMPMedia2::Error property

[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 Error property gets an IWMPErrorItem interface if the media item has an error condition.

This property is read-only.

Syntax

public IWMPErrorItem Error {get;}

Public ReadOnly Property Error As IWMPErrorItem

Property value

A WMPLib.IWMPErrorItem interface that provides access to information about the error condition.

Remarks

If the media item cannot be played, this property gets an IWMPErrorItem interface that contains information about the problem encountered.

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later
Namespace
WMPLib
Assembly
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

See also

IWMPErrorItem (VB and C#)

IWMPMedia2 Interface (VB and C#)