This Task can start the MarketPlace client program and display the application according to the settings. It can be said that MarketPlace is the top priority of WP7, because only the application can be installed through it, and the developer program can be delivered to the mobile phone.
1. MarketplaceHubTask: Start the client program and display the application according to the set category.
MarketplaceHubTask hub = new MarketplaceHubTask ();
Hub. ContentType = MarketplaceContentType. Applications;
Hub. Show ();
2. MarketplaceDetailTask: Start the client program and display the details of the specified application.
MarketplaceDetailTask detail = new MarketplaceDetailTask ();
Detail. ContentIdentifier = ""; // sets the identifier of the application to be displayed.
Detail. ContentType = MarketplaceContentType. Applications;
Detail. Show ();
3. MarketplaceReviewTask: Start the client program and display the preview page of the application.
MarketplaceReviewTask review = new MarketplaceReviewTask ();
Review. Show ();
4. MarketplaceSearchTask: Start the client program and search for the application according to the settings.
MarketplaceSearchTask marketsearch = new MarketplaceSearchTask ();
Marketsearch. ContentType = MarketplaceContentType. Applications;
Marketsearch. SearchTerms = "games ";
Marketsearch. Show ();
The above is the Task currently provided by MarketPlace, but it cannot run on the simulator, and an error will be reported. I don't know if the Market cannot be used in China? Or is MarketPlace not open yet? Or cannot it be run on the simulator? In addition, if you directly run the MarketPlace program on the simulator, an English prompt will be displayed. Do you have the same meaning as the error code?