Share via


ContentAccessRestrictionLevel 列舉

定義

根據使用者的內容設定,指定內容的處理方式。

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
繼承
ContentAccessRestrictionLevel
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

Allow 0

可以在內容目錄中顯示並取用。

Block 2

可以在內容目錄中顯示,但 RequestContentAccessAsync將會封鎖。

Hide 3

無法顯示在內容目錄中。 其評等高於使用者設定,由 MaxBrowsableAgeRating決定。

Warn 1

(Xbox 只會) 如果已登入多個使用者且至少一位使用者的內容遭到封鎖,則會允許顯示警告的內容。

適用於