Share via


Windows Media Player 11 SDK IWMPMediaCollection2.getPlaylistByQuery (VB and C#) 

Windows Media Player SDK banner art

Previous Next

IWMPMediaCollection2.getPlaylistByQuery (VB and C#)

The getPlaylistByQuery method returns an IWMPPlaylist interface that provides access to media items that match the query conditions.

  

Parameters

pQuery

The WMPLib.IWMPQuery interface that represents the query.

bstrMediaType

The System.String that is the media type. Must contain one of the following values: "audio", "video", "photo", "playlist", or "other".

bstrSortAttribute

The System.String that is the attribute name used for sorting. A zero-length string ("") means no sorting is applied.

fSortAscending

The System.Boolean value that indicates whether the playlist must be sorted in ascending order.

Return Value

A WMPLib.IWMPPlaylist interface for the retrieved playlist.

Remarks

Compound queries using IWMPQuery are not case sensitive.

When the compound query specified by the pQuery parameter contains a condition built on the MediaType attribute, that condition is ignored. The value for the bstrMediaType parameter is always used. For example, if the compound query contains the condition "MediaType Equals audio" and the value for the bstrMediaType parameter is "video", the resulting playlist will contain only video items.

Requirements

Version: Windows Media Player 11.

Namespace: WMPLib

Assembly: Interop.WMPLib.dll (automatically generated by Visual Studio)

See Also

Previous Next