Windows Media Player 11 SDK MediaCollection.getStringCollectionByQuery
Previous | Next |
MediaCollection.getStringCollectionByQuery
The getStringCollectionByQuery method retrieves a StringCollection object containing all strings that match the query conditions.
Syntax
Parameters
attribute
String containing the attribute name.
query
Query object.
mediaType
String containing the media type. Must contain one of the following values: "audio", "video", "photo", "playlist", or "other".
sortAttribute
String containing the attribute name used for sorting. An empty string ("") means no sorting is applied.
sortAscending
Boolean, true indicating that the StringCollection must be sorted in ascending order.
Return Values
This method returns a StringCollection object.
Remarks
Compound queries using Query are not case sensitive.
When the compound query specified by the query parameter contains a condition built on the MediaType attribute, that condition is ignored. The value for the mediaType parameter is always used. For example, if the compound query contains the condition "MediaType Equals audio" and the value for the mediaType parameter is "video", the resulting playlist will contain only video items.
Requirements
Version: Windows Media Player 11.
Library: Use wmp.dll.
See Also
Previous | Next |