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)

public PlayerIndex PlayerIndex { get; }

Property Value

Index of the gamer.

Exception typeCondition
ObjectDisposedExceptionThrown if the associated profile is no longer valid. For example, the profile may have signed out.

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

This property is always PlayerIndex.One on Windows Phone.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: