SignedInGamer.BeginAwardAchievement Method
Starts an asynchronous operation to award an achievement to a locally signed-in gamer.
Syntax
'Declaration
Public Function BeginAwardAchievement ( _
achievementKey As String, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
public IAsyncResult BeginAwardAchievement (
string achievementKey,
AsyncCallback callback,
Object state
)
public:
IAsyncResult BeginAwardAchievement(
String achievementKey,
AsyncCallback callback,
Object state
)
Parameters
- achievementKey
Type: String
Identifier specifying the achievement to award. - callback
Type: AsyncCallback
The method to be called once the asynchronous operation iss finished. - state
Type: Object
State of the asynchronous operation.
Return Value
Type: IAsyncResult
An IAsyncResult used to track the progress of the method. Call EndAwardAchievement to access these 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
Working with Asynchronous Methods in XNA Game Studio
Reference
SignedInGamer Class
SignedInGamer Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone