LeaderboardReader.Read Method (LeaderboardIdentity, Int32, Int32)
Begins reading a leaderboard synchronously, specifying a leaderboard identity, the start page, and the page size.
Syntax
'Declaration
Public Shared Function Read ( _
leaderboardId As LeaderboardIdentity, _
pageStart As Integer, _
pageSize As Integer _
) As LeaderboardReader
public static LeaderboardReader Read (
LeaderboardIdentity leaderboardId,
int pageStart,
int pageSize
)
public:
static LeaderboardReader Read(
LeaderboardIdentity leaderboardId,
int pageStart,
int pageSize
)
Parameters
- leaderboardId
Type: LeaderboardIdentity
The leaderboard identity of the leaderboard to read. - pageStart
Type: Int32
The page of leaderboard entries at which to start. Pass zero to start at the highest scores. - pageSize
Type: Int32
The number of leaderboard entries per page. Pass zero to include all available entries on a single page.
Return Value
Type: LeaderboardReader
The leaderboard reader used to read the results.
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
Tasks
Reference
LeaderboardReader Class
LeaderboardReader Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone