Udostępnij za pośrednictwem


TargetedContentSubscription Class

Definition

Represents a Subscription object.

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
Inheritance
Object Platform::Object IInspectable TargetedContentSubscription
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Services.TargetedContent.TargetedContentContract (introduced in v1.0)
App capabilities
secondaryAuthenticationFactor targetedContent

Properties

Id

Gets the ID of a Subscription.

Methods

GetAsync(String)

Returns a TargetedContentContainer object for a subscriptionID.

GetContentContainerAsync()

Returns a TargetedContentContainer object for a TargetedContentSubscription.

GetOptions(String)

Gets an object to TargetedContentSubscriptionOptions for a given subscription.

Events

AvailabilityChanged

Occurs when the availability of the content associated with the TargetedContentSubscription changes.

ContentChanged

Occurs when the content in this subscription changes.

StateChanged

Event invoked when TargetedContentSubscription State has changed.

Applies to