Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 21. Working with Phone Internals > Interacting with the Marketplace

Interacting with the Marketplace

There are several different tasks that allow your application to interact with the Marketplace. All of these tasks launch the Marketplace application on the phone and automatically display the appropriate information.

The MarketplaceDetailTask, shown in Listing 21.5, displays the detail page about the current application or about a specific application if you provide a unique application identifier.

Listing 21.5 The MarketplaceDetailTask


MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentIdentifier = "88049f8c-01f7-df11-9264-00237de2db9e";
marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
marketplaceDetailTask.Show();


The MarketplaceHubTask is the simplest task and simply opens the Windows Phone Marketplace application. The only information you need to provide is the content type to display, either Applications or Music, as shown in Listing 21.6.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint