Share via


RatedContentRestrictions Class

Definition

Contains all behavior and functionality related to a user's Family Safety content settings.

public ref class RatedContentRestrictions sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RatedContentRestrictions final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class RatedContentRestrictions final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RatedContentRestrictions
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.ContentRestrictions.IRatedContentRestrictionsFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class RatedContentRestrictions
function RatedContentRestrictions(maxAgeRating)
Public NotInheritable Class RatedContentRestrictions
Inheritance
Object Platform::Object IInspectable RatedContentRestrictions
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

RatedContentRestrictions()

Initializes a new instance of the RatedContentRestrictions class.

RatedContentRestrictions(UInt32)

Initializes a new instance of the RatedContentRestrictions class, with the specified age rating the app uses, to restrict content usage.

Methods

GetBrowsePolicyAsync()

Gets information that is used filter an app's content catalog.

GetRestrictionLevelAsync(RatedContentDescription)

Gets the policy that applies to a piece of content, for content browsing and consumption.

RequestContentAccessAsync(RatedContentDescription)

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

Events

RestrictionsChanged

An event handler to notify apps when there are changes to the user's content settings.

Applies to