Share via


RatedContentRestrictions Constructors

Definition

Overloads

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.

RatedContentRestrictions()

Initializes a new instance of the RatedContentRestrictions class.

public:
 RatedContentRestrictions();
 RatedContentRestrictions();
public RatedContentRestrictions();
function RatedContentRestrictions()
Public Sub New ()

See also

Applies to

RatedContentRestrictions(UInt32)

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

public:
 RatedContentRestrictions(unsigned int maxAgeRating);
 RatedContentRestrictions(uint32_t const& maxAgeRating);
public RatedContentRestrictions(uint maxAgeRating);
function RatedContentRestrictions(maxAgeRating)
Public Sub New (maxAgeRating As UInteger)

Parameters

maxAgeRating
UInt32

unsigned int

uint32_t

The max age rating.

Remarks

Restrictions are enforced based on the minimum user’s overall Family Safety age rating (expressed by PreferredAgeRating), and the app-specific age rating value used in this constructor.

Applies to