Gamer.BeginGetPartnerToken Method

Begins the asynchronous process of getting the partner token for this gamer.

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

public static IAsyncResult BeginGetPartnerToken (
         string audienceUri,
         AsyncCallback callback,
         Object asyncState


Type: String
URI associated with the service to use with this token. This cannot be null.
Type: AsyncCallback
Method to call once the asynchronous operation is finished.
Type: Object
State of the asynchronous operation.

Return Value

An IAsyncResult used to track the progress of the method. Call EndGetPartnerToken to access these results.


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.

A partner token contains authentication information that identifies both the application and gamer for communication with Xbox LIVE.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions