ContentRestrictionsBrowsePolicy
ContentRestrictionsBrowsePolicy
ContentRestrictionsBrowsePolicy
ContentRestrictionsBrowsePolicy
Class
Definition
Contains information used to filter an app's content catalog.
public : sealed class ContentRestrictionsBrowsePolicy : IContentRestrictionsBrowsePolicypublic sealed class ContentRestrictionsBrowsePolicy : IContentRestrictionsBrowsePolicyPublic NotInheritable Class ContentRestrictionsBrowsePolicy Implements IContentRestrictionsBrowsePolicy// You can use this class in JavaScript.
- Attributes
| 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// You can use this property in JavaScript.
- 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<uint> MaxBrowsableAgeRating { get; }public Nullable<uint> MaxBrowsableAgeRating { get; }Public ReadOnly Property MaxBrowsableAgeRating As Nullable<uint>// You can use this property in JavaScript.
- 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<uint> PreferredAgeRating { get; }public Nullable<uint> PreferredAgeRating { get; }Public ReadOnly Property PreferredAgeRating As Nullable<uint>// You can use this property in JavaScript.
- 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.