Sdílet prostřednictvím


Gamer.BeginGetPartnerToken Method

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

Syntax

'Declaration
Public Shared Function BeginGetPartnerToken ( _
         audienceUri As String, _
         callback As AsyncCallback, _
         asyncState As Object _
) As IAsyncResult 
public static IAsyncResult BeginGetPartnerToken (
         string audienceUri,
         AsyncCallback callback,
         Object asyncState
)
public:
static IAsyncResult BeginGetPartnerToken(
         String audienceUri,
         AsyncCallback callback,
         Object asyncState
)

Parameters

  • audienceUri
    Type: String
    URI associated with the service to use with this token. This cannot be null.
  • callback
    Type: AsyncCallback
    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 EndGetPartnerToken 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.

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

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