LeaderboardIdentity.Create Method (LeaderboardKey, Int32)
Creates a new LeaderboardIdentity from a leaderboard key and game mode value.
Syntax
'Declaration
Public Shared Function Create ( _
key As LeaderboardKey, _
gameMode As Integer _
) As LeaderboardIdentity
public static LeaderboardIdentity Create (
LeaderboardKey key,
int gameMode
)
public:
static LeaderboardIdentity Create(
LeaderboardKey key,
int gameMode
)
Parameters
- key
Type: LeaderboardKey
The leaderboard key to use for this leaderboard identity. - gameMode
Type: Int32
The game mode value for this leaderboard identity.
Return Value
Type: LeaderboardIdentity
The new Leaderboard Identity. It is null if creation failed.
Remarks
Warning
This method retrieves a calculated result only for titles approved to access Xbox LIVE Services through the Xbox LIVE Registered Developer Program. For Xbox LIVE Indie games, this method returns immediately with a predetermined default value.
Requirements
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
See Also
Reference
LeaderboardIdentity Structure
LeaderboardIdentity Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone