RatedContentRestrictions.GetRestrictionLevelAsync 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.
Gets the policy that applies to a piece of content, for content browsing and consumption.
public:
virtual IAsyncOperation<ContentAccessRestrictionLevel> ^ GetRestrictionLevelAsync(RatedContentDescription ^ RatedContentDescription) = GetRestrictionLevelAsync;
IAsyncOperation<ContentAccessRestrictionLevel> GetRestrictionLevelAsync(RatedContentDescription const& RatedContentDescription);
public IAsyncOperation<ContentAccessRestrictionLevel> GetRestrictionLevelAsync(RatedContentDescription RatedContentDescription);
function getRestrictionLevelAsync(RatedContentDescription)
Public Function GetRestrictionLevelAsync (RatedContentDescription As RatedContentDescription) As IAsyncOperation(Of ContentAccessRestrictionLevel)
Parameters
- RatedContentDescription
- RatedContentDescription
The rated content info.
Returns
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.