-api-id | -api-type |
---|---|
M:Windows.Media.ContentRestrictions.RatedContentRestrictions.GetRestrictionLevelAsync(Windows.Media.ContentRestrictions.RatedContentDescription) |
winrt method |
Gets the policy that applies to a piece of content, for content browsing and consumption.
The rated content info.
This method returns these values:
- Allow– The content can be shown in the app's catalog, and is allowed for consumption by RequestContentAccessAsync.
- Block– The content can be shown in the app’s catalog, but it’s consumption is not allowed by RequestContentAccessAsync.
- Hide– The content can’t be shown in the catalog, since its rating is higher than MaxBrowsableAgeRating.