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

取得訂用帳戶的識別碼。

方法

GetAsync(String)

會傳回 subscriptionID 的 TargetedContentContainer 物件。

GetContentContainerAsync()

會傳回 TargetedContentSubscription 的 TargetedContentContainer 物件。

GetOptions(String)

取得指定訂用帳戶的 TargetedContentSubscriptionOptions 物件。

事件

AvailabilityChanged

發生于與 TargetedContentSubscription 相關聯的內容可用性變更時。

ContentChanged

發生于此訂用帳戶中的內容變更時。

StateChanged

TargetedContentSubscription 狀態變更時叫用的事件。

適用於