Gets the age group of the user.
public:
property UserAgeGroup AgeGroup {
UserAgeGroup get ();
}
Type: UserAgeGroup
Returns an enumeration value indicating the user’s age group.
Use AgeGroup to determine which age group a user is in, but use Privileges to determine specific abilities or limitations for a given user, including those that might be based on the user’s age. AgeGroup should not be used in place of a specifically-defined privilege, even if your understanding of the privilege is that it is based on age group. The only way to ensure that you comply with the Xbox Requirement (XR) that you honor privileges is to check the privileges explicitly, not to use other methods to approximate them.
For detailed information about the Xbox Live User Privilege system, see the “Upsell and Access Control to Features of Xbox Live Using Privileges” whitepaper located on the Xbox Game Developer (XGD) site.
Note
This is a cross-OS call. For more information, see Cross-OS Calls.
Namespace: Windows.Xbox.System
Metadata: windows.winmd