Share via


RatedContentRestrictions.RequestContentAccessAsync Method

Definition

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.

Applies to