Compartir a través de


querySet Element

[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 querySet element contains elements that define which media items will be selected from the library.

<querySet>
</querySet>

Attributes

This element has no attributes.

Parent/Child Elements

Hierarchy Elements
Parent smartPlaylist
Child sourceFilter

Remarks

The querySet element specifies which media items should be selected from the library, without regard for the size of the result set. The filter element, on the other hand, limits the size of the result set.

Examples

<querySet>
    <sourceFilter 
        type = "smartFilterObject" 
        id = "{4202947A-A563-4B05-A754-A1B4B5989849}"
        name = "Windows Media Local Music Library Filter">
            <fragment name = "Genre">
                <argument name = "Condition">Equals</argument>
                <argument name = "Value">Rock</argument>
            </fragment>
            <fragment name = "Artist">
                <argument name = "Condition">Does Not Equal</argument>
                <argument name = "Value">Brenda Diaz</argument>
            </fragment>
    </sourceFilter>
</querySet>

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later.

See also

argument Element

filter Element

fragment Element

smartPlaylist Element

sourceFilter Element

Windows Media Playlist Elements Reference