ContentAccessRestrictionLevel Enum

Definition

Specifies how the content is treated, based on the user's content settings.

public enum class ContentAccessRestrictionLevel
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ContentAccessRestrictionLevel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ContentAccessRestrictionLevel
var value = Windows.Media.ContentRestrictions.ContentAccessRestrictionLevel.allow
Public Enum ContentAccessRestrictionLevel
Inheritance
ContentAccessRestrictionLevel
Attributes

Windows requirements

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

Fields

Allow 0

Can be shown in the content catalog and consumed.

Block 2

Can be shown in the content catalog, but will be blocked by RequestContentAccessAsync.

Hide 3

Can't be shown in the content catalog. It's rating is higher than the user's settings, determined by MaxBrowsableAgeRating.

Warn 1

(Xbox only) If multiple users are logged in and the content is blocked for at least one user, content is allowed with a warning displayed.

Applies to