次の方法で共有


Guide.ShowGamerCard Method

Shows the Gamer Card user interface.

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

Syntax

public static void ShowGamerCard (
         PlayerIndex player,
         Gamer gamer
)

Parameters

  • player
    Index of the player making the request.

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

  • gamer
    Owner of the gamer card being requested for display.

Remarks

Bb975991.bp(en-US,XNAGameStudio.30).gifBest Practice

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

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista