Description
The Achievements
property of the AchievementOverview
class provides access to an array of Achievement
objects. This property allows you to retrieve the list of achievements associated with a particular package or context within the Sandbox environment.
Usage
To access the achievements, you need to have an instance of the AchievementOverview
class. Once you have the instance, you can access the Achievements
property to get the array of Achievement
objects.
Example
// Assuming you have an instance of AchievementOverview
AchievementOverview achievementOverview = new AchievementOverview();
// Access the Achievements property
Achievement[] achievements = achievementOverview.Achievements;
// Iterate through the achievements
foreach (var achievement in achievements)
{
// Process each achievement
Console.WriteLine($"Achievement: {achievement.Name}, Description: {achievement.Description}");
}