Retrieves the policy that applies to a piece of content. Apps can use this information to message to the user whether a piece of content can be consumed.
public:
IAsyncOperation<ContentAccessRestrictionLevel>^ GetRestrictionLevelAsync(
RatedContentDescription^ ratedContentDescription
)
ratedContentDescription
Type: RatedContentDescription
Information about the content for which restriction level is being queried.
Type: IAsyncOperation<ContentAccessRestrictionLevel>
Returns an IAsyncOperation<TResult> object that represents the state of the asynchronous operation. Completion of the asynchronous operation is signaled by using a handler that is passed to the IAsyncOperation<TResult>.Completed property. When the asynchronous operation is complete, the result of the operation can be retrieved by using the IAsyncOperation<TResult>.GetResults method.
The result is an enumeration value indicating the restriction level. See Remarks.
The method returns the following values:
Namespace: Windows.Media.ContentRestrictions
Metadata: windows.winmd
RatedContentRestrictions Class