book_4_sparkGenerated
code_blocksInput

Description

The All property of the AchievementCollection class provides a read-only collection of all achievements associated with a specific package. This property allows you to access the complete list of achievements without modifying the collection.

Usage

To access the All property, you need to have an instance of the AchievementCollection class. Once you have the instance, you can retrieve the collection of achievements as follows:

Example

// Assuming 'achievementCollection' is an instance of AchievementCollection
IReadOnlyCollection<Achievement> achievements = achievementCollection.All;

// Iterate through the achievements
foreach (var achievement in achievements)
{
    // Access properties of each achievement
    Console.WriteLine($"Achievement Name: {achievement.Name}");
    Console.WriteLine($"Description: {achievement.Description}");
}