Compartir a través de


IWMPMediaCollection2 (VB and C#) interface

[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.]

Provides methods that supplement the IWMPMediaCollection interface.

Members

The IWMPMediaCollection2 (VB and C#) interface has these types of members:

Methods

The IWMPMediaCollection2 (VB and C#) interface has these methods.

Method Description
createQuery Returns an IWMPQuery interface that represents a new query.
getByAttributeAndMediaType Returns an IWMPPlaylist interface that provides access to media items that have a specified attribute and media type.
getPlaylistByQuery Returns an IWMPPlaylist interface that provides access to media items that match the query conditions.
getStringCollectionByQuery Returns an IWMPStringCollection interface that provides access to the set of all string values for a specified attribute that match the query conditions.

Get an IWMPMediaCollection2 interface by casting the value returned by the AxWindowsMediaPlayer.mediaCollection property or the value returned by the IWMPLibrary.mediaCollection property.

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#

IWMPMediaCollection Interface (VB and C#)