ContentRestrictionsBrowsePolicy.PreferredAgeRating Property

Definition

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

IReference<UInt32>

Nullable<UInt32>

Windows.Foundation.IReference

IReference<uint32_t>

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.

Applies to