Searching the Marketplace with the MarketplaceSearchTask

The Marketplace search task is used to launch the built-in Marketplace app, which displays the search results for a specified search string.

The MarketplaceSearchTask class has two properties: SearchTerms and ContentType. SearchTerms is a string that contains one or more search terms. ContentType can be set to either MarketplaceContentType.Applications or MarketplaceContentType.Music. If not specified, ContentType defaults to MarketplaceContentType.Applications. The following excerpt demonstrates how to create and launch a MarketplaceSearchTask:

MarketplaceSearchTask task    = new MarketplaceSearchTask        {            ContentType = MarketplaceContentType ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.