TargetedContentSubscription 类

定义

表示 Subscription 对象。

public ref class TargetedContentSubscription sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.TargetedContent.TargetedContentContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TargetedContentSubscription final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.TargetedContent.TargetedContentContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TargetedContentSubscription
Public NotInheritable Class TargetedContentSubscription
继承
Object Platform::Object IInspectable TargetedContentSubscription
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Services.TargetedContent.TargetedContentContract (在 v1.0 中引入)
应用功能
secondaryAuthenticationFactor targetedContent

属性

Id

获取订阅的 ID。

方法

GetAsync(String)

返回 subscriptionID 的 TargetedContentContainer 对象。

GetContentContainerAsync()

返回 TargetedContentSubscription 的 TargetedContentContainer 对象。

GetOptions(String)

获取给定订阅的 TargetedContentSubscriptionOptions 的对象。

事件

AvailabilityChanged

当与 TargetedContentSubscription 关联的内容的可用性更改时发生。

ContentChanged

此订阅中的内容发生更改时发生。

StateChanged

TargetedContentSubscription 状态更改时调用的事件。

适用于