다음을 통해 공유


IWMPMediaCollection2 interface (wmp.h)

[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 IWMPMediaCollection2 interface provides methods that supplement the IWMPMediaCollection interface.

Inheritance

The IWMPMediaCollection2 interface inherits from IWMPMediaCollection. IWMPMediaCollection2 also has these types of members:

Methods

The IWMPMediaCollection2 interface has these methods.

 
IWMPMediaCollection2::createQuery

The createQuery method retrieves a pointer to an IWMPQuery interface that represents a new query.
IWMPMediaCollection2::getByAttributeAndMediaType

The getByAttributeAndMediaType method retrieves a pointer to an IWMPPlaylist interface. This interface represents a playlist that contains media items that have a specified attribute and media type.
IWMPMediaCollection2::getPlaylistByQuery

The getPlaylistByQuery method retrieves a pointer to an IWMPPlaylist interface. This interface represents a playlist that contains media items that match the query conditions.
IWMPMediaCollection2::getStringCollectionByQuery

The getStringCollectionByQuery method retrieves a pointer to an IWMPStringCollection interface. This interface represents a set of all string values for a specified attribute that match the query conditions.

Requirements

Requirement Value
Target Platform Windows
Header wmp.h

See also

IWMPMediaCollection Interface

Interfaces