﻿// Specify a media query; this one matches the entire iPod library because it
// does not contain a media property predicate.
//
// Configure the query to group by artists
//
var everything = new MPMediaQuery () {
    GroupingType = MPMediaGrouping.Artist
};

// Get the collections from the query
var collections = everything.Collections;