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 中引入)

注解

如果某段内容没有第三方分级,也没有 Microsoft Store 年龄分级,则应用必须传递 NULL 作为分级。

构造函数

RatedContentDescription(String, String, RatedContentCategory)

初始化 RatedContentDescription 类的新实例。

属性

Category

指定由 RatedContentCategory 定义的一段内容的类型。

Id

应用的内容目录中内容的唯一内容 ID。

Image

与内容关联的缩略图。

Ratings

为一段内容提供所有现有的第三方和 Microsoft Store 年龄分级。

Title

内容片段的显示标题。

适用于