SignedInGamer.PlayerIndex Property

Gets the index of the gamer.

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

Syntax

public PlayerIndex PlayerIndex { get; }

Property Value

Index of the gamer.

Exceptions

Exception type Condition
ObjectDisposedException Thrown if the associated profile is no longer valid. For example, the profile may have signed out.

Remarks

Bb975857.note(en-us,XNAGameStudio.41).gifWindows Phone Specific Information

This property is always PlayerIndex.One on Windows Phone.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP