Partilhar via


AchievementCollection.Item Property (String)

Retrieves the Achievement matching a specified achievement key string.

Syntax

'Declaration
Public ReadOnly Property Item ( _
         achievementKey As String _
) As Achievement 
public Achievement this [
         string achievementKey
] { get; }
public:
property Achievement default [String] {
         Achievement get (String achievementKey);
}

Property Value

Type: Achievement
The achievement matching the specified key.

Remarks

Warning

This property retrieves a calculated result only for titles approved to access Xbox LIVE services through the Xbox LIVE Registered Developer Program. For Xbox LIVE Indie games, this property will return immediately with a predetermined default value.

Requirements

Namespace: Microsoft.Xna.Framework.GamerServices

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

See Also

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

Platforms

Windows Phone