共用方式為


GamerServicesComponent Class

Wraps the functionality of the GamerServicesDispatcher.

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

Syntax

public class GamerServicesComponent : GameComponent

Remarks

If a game will use gamer services, a GamerServicesComponent should be added to the game's Components collection. GamerServicesComponent will take care of initializing and updating the GamerServicesDispatcher at the appropriate times.

See Also

Reference

GamerServicesComponent Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune