Guide.ShowGamerCard Method

Shows the Gamer Card user interface.

Syntax

'Declaration
Public Shared Sub ShowGamerCard ( _
         player As PlayerIndex, _
         gamer As Gamer _
)
public static void ShowGamerCard (
         PlayerIndex player,
         Gamer gamer
)
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.

Remarks

If AllowProfileViewing is false, a GamerPrivilegeException is thrown.

Bb975991.bp(en-us,XNAGameStudio.42).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.

Requirements

Namespace: Microsoft.Xna.Framework.GamerServices

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

See Also

Reference

GamerPrivileges.AllowProfileViewing Property
Guide Class
Guide Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Windows Phone