GamerServicesComponent Constructor

Creates a new GamerServicesComponent.

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

public GamerServicesComponent (
         Game game


The game that will be associated with this component.

Exception typeCondition
  • If the current game uses the XNA Framework Redistributable. This file does not include Games for Windows – LIVE functionality.
  • If another Games for Windows – LIVE title is running already.
ArgumentNullException serviceProvider is null.
InvalidOperationExceptionThe gamer services functionality is already initialized.


Games for Windows - LIVE is not available to finished games. This functionality is not included in the redistributable version of the XNA Framework, and a game that attempts to use these components without XNA Game Studio installed will result in a GamerServicesNotAvailableException.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions