RatedContentRestrictions.RequestContentAccessAsync | requestContentAccessAsync method

Determines whether the user is allowed to consume a piece of content.

Syntax


ratedContentRestrictions.requestContentAccessAsync(RatedContentDescription).done( /* Your success and error handlers */ );

Parameters

RatedContentDescription

Type: RatedContentDescription

The rated content info.

Return value

Type: IAsyncOperation<Boolean>

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Namespace

Windows.Media.ContentRestrictions
Windows::Media::ContentRestrictions [C++]

Metadata

Windows.winmd

See also

RatedContentRestrictions

 

 

Build date: 11/16/2013

Show:
© 2014 Microsoft