共用方式為


GamerPresence.PresenceValue Property

Gets or sets a custom presence value. You can insert this into the presence string if you select one of the presence modes that includes a value. For example, you might select GamerPresenceMode.Score or GamerPresenceMode.Level.

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

Syntax

public int PresenceValue { get; set; }

Property Value

A custom presence value, which indicates a stage, score, or level to display as a part of the presence string.

Remarks

Dd282373.note(en-US,XNAGameStudio.30).gifZune Specific Information
Setting presence information is not supported on the Zune platform. On the Zune platform, setting presence information for a signed-in gamer will not change the presence information on Xbox LIVE.

The following GamerPresenceMode settings, specified in PresenceMode, may include a numeric value as specified by PresenceValue:

See Also

Reference

GamerPresence.PresenceMode Property
SignedInGamer.Presence Property
Gamer.SignedInGamers Property
GamerPresence Class
GamerPresence Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune