RatedContentRestrictions.RequestContentAccessAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the user is allowed to consume a piece of content.
public:
virtual IAsyncOperation<bool> ^ RequestContentAccessAsync(RatedContentDescription ^ RatedContentDescription) = RequestContentAccessAsync;
IAsyncOperation<bool> RequestContentAccessAsync(RatedContentDescription const& RatedContentDescription);
public IAsyncOperation<bool> RequestContentAccessAsync(RatedContentDescription RatedContentDescription);
function requestContentAccessAsync(RatedContentDescription)
Public Function RequestContentAccessAsync (RatedContentDescription As RatedContentDescription) As IAsyncOperation(Of Boolean)
Parameters
- RatedContentDescription
- RatedContentDescription
The rated content info.
Returns
Returns true, if the user can consume the content. Otherwise, returns false.
Remarks
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.