Windows Media Player 11 SDK IWMPMediaCollection2.getStringCollectionByQuery (VB and C#)
Previous | Next |
IWMPMediaCollection2.getStringCollectionByQuery (VB and C#)
The getStringCollectionByQuery method returns an IWMPStringCollection interface that provides access to the set of all string values for a specified attribute that match the query conditions.
Parameters
bstrAttribute
The System.String that is the attribute name.
pQuery
The WMPLib.IWMPQuery interface that is the query that defines the conditions used to retrieve the string collection.
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 set of string values must be sorted in ascending order.
Return Value
A WMPLib.IWMPStringCollection interface for the retrieved set of string values.
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
- IWMPMediaCollection2 Interface (VB and C#)
- IWMPQuery Interface (VB and C#)
- IWMPStringCollection Interface (VB and C#)
- MediaType Attribute
Previous | Next |