Share via


Gamer.GetPartnerToken Method

Gets the partner token for this gamer.

Syntax

'Declaration
Public Shared Function GetPartnerToken ( _
         audienceUri As String _
) As String 
public static string GetPartnerToken (
         string audienceUri
)
public:
static String GetPartnerToken(
         String audienceUri
)

Parameters

  • audienceUri
    Type: String
    URI associated with the service that will be used with this token. This cannot be null.

Return Value

Type: String
The Xbox LIVE partner token for the gamer.

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

Reference

Gamer Class
Gamer Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Windows Phone