Export (0) Print
Expand All
Expand Minimize

LeaderboardOutcome Enumeration

Values used to provide an outcome for a player's leaderboard entry.

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

public enum LeaderboardOutcome

LeaderboardOutcome is used to set the "Outcome" property of a leaderboard entry. For example:

    SignedInGamer gamer = SignedInGamer.SignedInGamers[0];
      
    // Retrieve LeaderboardWriter for the SignedInGamer.
    LeaderboardWriter writer = gamer.LeaderboardWriter;
      
    // Get leaderboard entry by specified leaderboard id.
    LeaderboardEntry entry = writer.GetLeaderboard(
        LeaderboardIdentity.Create(LeaderboardKey.BestScoreThisWeek));

    // Send the outcome of this match
    entry.Columns.SetValue("Outcome", LeaderboardOutcome.Win);
    
    // Send additional Leaderboard data...
    

 Member nameDescription
LossPlayer lost the match.
NoneNo result reported.
TieMatch resulted in a tie: no player won.
WinPlayer won the match.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2014 Microsoft