Share via


Gamer.GetFromGamertag Method

Returns a Gamer object for the specified gamertag.

Syntax

'Declaration
Public Shared Function GetFromGamertag ( _
         gamertag As String _
) As Gamer 
public static Gamer GetFromGamertag (
         string gamertag
)
public:
static Gamer GetFromGamertag(
         String gamertag
)

Parameters

  • gamertag
    Type: String
    The Xbox LIVE gamertag for the gamer requested.

Return Value

Type: Gamer
A Gamer object for the specified gamertag.

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

Reference

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

Platforms

Windows Phone