-api-id | -api-type |
---|---|
M:Windows.Media.ContentRestrictions.RatedContentRestrictions.RequestContentAccessAsync(Windows.Media.ContentRestrictions.RatedContentDescription) |
winrt method |
Determines whether the user is allowed to consume a piece of content.
The rated content info.
Returns true, if the user can consume the content. Otherwise, returns false.
If the content is not allowed, this method will display a Content blocked by Family Safety dialog with options to request a parental override. Apps are expected to take no action if this method returns false.