DeviceConnectionChangeTrigger DeviceConnectionChangeTrigger DeviceConnectionChangeTrigger DeviceConnectionChangeTrigger DeviceConnectionChangeTrigger Class

Definition

Represents a trigger that launches a background task when the connection status of a device changes.

public : sealed class DeviceConnectionChangeTrigger : IBackgroundTrigger
struct winrt::Windows::ApplicationModel::Background::DeviceConnectionChangeTrigger : IBackgroundTrigger
public sealed class DeviceConnectionChangeTrigger : IBackgroundTrigger
Public NotInheritable Class DeviceConnectionChangeTrigger Implements IBackgroundTrigger
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

CanMaintainConnection CanMaintainConnection CanMaintainConnection CanMaintainConnection CanMaintainConnection

Gets whether the system can maintain a connection to the specified device.

DeviceId DeviceId DeviceId DeviceId DeviceId

Gets the device Id associated with the device.

MaintainConnection MaintainConnection MaintainConnection MaintainConnection MaintainConnection

Gets or sets whether the system should automatically attempt to keep the referenced device connected.

Methods

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Begins an asynchronous operation to get the DeviceConnectionChangeTrigger associated with the specified Id.

See also