ContentRestrictionsBrowsePolicy ContentRestrictionsBrowsePolicy ContentRestrictionsBrowsePolicy ContentRestrictionsBrowsePolicy Class

Definition

Contains information used to filter an app's content catalog.

public : sealed class ContentRestrictionsBrowsePolicy : IContentRestrictionsBrowsePolicy
public sealed class ContentRestrictionsBrowsePolicy : IContentRestrictionsBrowsePolicy
Public NotInheritable Class ContentRestrictionsBrowsePolicy Implements IContentRestrictionsBrowsePolicy
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

GeographicRegion GeographicRegion GeographicRegion GeographicRegion

Gets the region of the user's content restrictions.

public : Platform::String GeographicRegion { get; }
public string GeographicRegion { get; }
Public ReadOnly Property GeographicRegion As string
var string = contentRestrictionsBrowsePolicy.geographicRegion;
Value
Platform::String string string string

A String, representing the geographic region.

MaxBrowsableAgeRating MaxBrowsableAgeRating MaxBrowsableAgeRating MaxBrowsableAgeRating

Gets the maximum allowed age rating level to show in a content catalog. No content rated above this level should be displayed. For example, if the MaxBrowsableAgeRating is 13, MPAA:R rated movies should not be displayed.

public : IReference<unsigned int> MaxBrowsableAgeRating { get; }
public Nullable<uint> MaxBrowsableAgeRating { get; }
Public ReadOnly Property MaxBrowsableAgeRating As Nullable<uint>
var nullable = contentRestrictionsBrowsePolicy.maxBrowsableAgeRating;
Value
IReference<unsigned int> Nullable<uint> Nullable<uint> Nullable<uint>

An integer, that represents an age.

Remarks

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.

PreferredAgeRating PreferredAgeRating PreferredAgeRating PreferredAgeRating

Gets the maximum allowed rating level for content consumption.

public : IReference<unsigned int> PreferredAgeRating { get; }
public Nullable<uint> PreferredAgeRating { get; }
Public ReadOnly Property PreferredAgeRating As Nullable<uint>
var nullable = contentRestrictionsBrowsePolicy.preferredAgeRating;
Value
IReference<unsigned int> Nullable<uint> Nullable<uint> Nullable<uint>

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.