ContentRestrictionsBrowsePolicy.PreferredAgeRating Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the maximum allowed rating level for content consumption.
public:
property IReference<unsigned int> ^ PreferredAgeRating { IReference<unsigned int> ^ get(); };
IReference<uint32_t> PreferredAgeRating();
public System.Nullable<uint> PreferredAgeRating { get; }
var iReference = contentRestrictionsBrowsePolicy.preferredAgeRating;
Public ReadOnly Property PreferredAgeRating As Nullable(Of UInteger)
Property Value
An integer that represents the rating level.
Remarks
Apps may choose to tailor their content catalog based on this value. For example, an app may show more movies appropriate for young children to a user whose preferred rating is 6, even though the user’s maximum allowed browse rating may be 12.
If user doesn’t have any content restrictions enforced by Family Safety the return value is NULL. The app is still expected to call RequestContentAccessAsync for every piece of content a user is trying to use.