Export (0) Print
Expand All

Guide.ShowGamerCard Method

Shows the Gamer Card user interface.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)

public static void ShowGamerCard (
         PlayerIndex player,
         Gamer gamer
)

Parameters

player
Type: PlayerIndex

Index of the player making the request.

The profile specified by player must be signed in when calling this function.

gamer
Type: Gamer
Owner of the gamer card being requested for display.

If AllowProfileViewing is false, a GamerPrivilegeException is thrown.

Bb975991.bp(en-us,XNAGameStudio.41).gifBest Practice

You can check GamerPrivileges.AllowProfileViewing to determine if a player is allowed to send and receive communications before displaying a menu option that would call this method.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2015 Microsoft