ContentRestrictionsBrowsePolicy.PreferredAgeRating 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取内容消耗允许的最大分级级别。
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)
属性值
一个表示分级级别的整数。
注解
应用可以选择根据此值定制其内容目录。 例如,应用可能会向首选分级为 6 的用户显示更多适合幼儿的电影,即使用户允许的最大浏览分级可能为 12。
如果用户没有通过家庭安全强制实施任何内容限制,则返回值为 NULL。 对于用户尝试使用的每个内容,应用仍应调用 RequestContentAccessAsync 。