Guide.ShowMarketplace Method
Displays the marketplace user interface.
Syntax
'Declaration
Public Shared Sub ShowMarketplace ( _
player As PlayerIndex _
)
public static void ShowMarketplace (
PlayerIndex player
)
public:
static void ShowMarketplace(
PlayerIndex player
)
Parameters
- player
Type: PlayerIndex
Index of the controller for the player making the request.
Remarks
You can check GamerPrivileges.AllowPurchaseContent to determine if a player is allowed to purchase content before displaying a menu option that would call this method.
You can use this method to show a Marketplace offer when a game in trial mode is exiting: In your game's Game.Exit method, determine if the game is in trial mode by checking Guide.IsTrialMode, and call ShowMarketplace to show the Windows Phone Marketplace.
Windows Phone Specific Information |
---|
On Windows Phone, this method causes the game to close so that the system user interface can be shown. For information about how to prepare for such an interruption, see Handling Interruptions on Windows Phone. |
Requirements
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
See Also
Tasks
Simulating Trial Mode for Marketplace Content
Reference
GamerPrivileges.AllowPurchaseContent Property
Guide.SimulateTrialMode Property
Guide.IsTrialMode Property
Guide Class
Guide Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone