LeaderboardReader Class
Reads data from leaderboards.
Leaderboards can be read in three different ways:
- By passing a page start index, which reads a range of consecutive entries starting at that rank. This typically is used to read the top scores by passing zero as the page start.
- By passing a pivot gamer, which reads a range of consecutive entries centered on the rank of that gamer. This typically is used to display the entries immediately above and below the current local profile.
- By passing a collection of gamers, which reads entries specifically for those profiles. This typically is used to display a friends leaderboard.
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
Syntax
public sealed class LeaderboardReader : IDisposable
Remarks
Warning
This class and all related methods and properties only retrieve a calculated result for titles approved to access Xbox LIVE Services through the Xbox LIVE Registered Developer Program. For Xbox LIVE Indie games, the properties in this class will not return a calculated result, and related methods will report a NotSupportedException.
See Also
Reference
LeaderboardReader Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP