ContentRestrictionsBrowsePolicy.PreferredAgeRating 属性

定义

获取内容消耗允许的最大分级级别。

public:
 property IReference<unsigned int> ^ PreferredAgeRating { IReference<unsigned int> ^ get(); };
IReference<uint32_t> PreferredAgeRating();
public System.Nullable<uint> PreferredAgeRating { get; }
var iReference = contentRestrictionsBrowsePolicy.preferredAgeRating;
Public ReadOnly Property PreferredAgeRating As Nullable(Of UInteger)

属性值

IReference<UInt32>

Nullable<UInt32>

Windows.Foundation.IReference

IReference<uint32_t>

一个表示分级级别的整数。

注解

应用可以选择根据此值定制其内容目录。 例如,应用可能会向首选分级为 6 的用户显示更多适合幼儿的电影,即使用户允许的最大浏览分级可能为 12。

如果用户没有通过家庭安全强制实施任何内容限制,则返回值为 NULL。 对于用户尝试使用的每个内容,应用仍应调用 RequestContentAccessAsync

适用于