Gamer.BeginGetFromGamertag Method
Begins the process of getting a Gamer object for a specified gamertag.
Syntax
'Declaration
Public Shared Function BeginGetFromGamertag ( _
gamertag As String, _
callback As AsyncCallback, _
asyncState As Object _
) As IAsyncResult
public static IAsyncResult BeginGetFromGamertag (
string gamertag,
AsyncCallback callback,
Object asyncState
)
public:
static IAsyncResult BeginGetFromGamertag(
String gamertag,
AsyncCallback callback,
Object asyncState
)
Parameters
- gamertag
Type: String
The Xbox LIVE gamertag for the gamer requested. - callback
Type: AsyncCallback
The method to call once the asynchronous operation is finished. - asyncState
Type: Object
State of the asynchronous operation.
Return Value
Type: IAsyncResult
An IAsyncResult used to track the progress of the method. Call EndGetFromGamertag 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
Overview
Working with Asynchronous Methods in XNA Game Studio
Reference
Gamer Class
Gamer Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone