共用方式為


RatedContentDescription 類別

定義

包含內容片段的相關資訊。 應用程式會針對要用於 GetRestrictionLevelAsyncRequestContentAccessAsync方法的每個內容建立RatedContentDescription物件。

public ref class RatedContentDescription sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.ContentRestrictions.IRatedContentDescriptionFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RatedContentDescription final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.ContentRestrictions.IRatedContentDescriptionFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class RatedContentDescription final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.ContentRestrictions.IRatedContentDescriptionFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RatedContentDescription
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.ContentRestrictions.IRatedContentDescriptionFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class RatedContentDescription
function RatedContentDescription(id, title, category)
Public NotInheritable Class RatedContentDescription
繼承
Object Platform::Object IInspectable RatedContentDescription
屬性

Windows 需求

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

備註

如果某個內容沒有協力廠商評等,或市集年齡分級,則應用程式必須傳遞 Null 作為評等。

建構函式

RatedContentDescription(String, String, RatedContentCategory)

初始化 RatedContentDescription 類別的新實例。

屬性

Category

指定 RatedContentCategory所定義之內容片段的類型。

Id

應用程式內容目錄中內容片段的唯一內容識別碼。

Image

與內容相關聯的縮圖影像。

Ratings

提供內容片段的所有現有協力廠商和 Microsoft Store 年齡分級。

Title

內容片段的顯示標題。

適用於