SystemTrigger.SystemTrigger constructor

Applies to Windows and Windows Phone

Initializes a new instance of a system event trigger.

Syntax


var systemTrigger = new Windows.ApplicationModel.Background.SystemTrigger(triggerType, oneShot);

Parameters

triggerType

Type: SystemTriggerType

Specifies the system event type.

oneShot

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True if the system event trigger will be used once; false if it will be used every time the event occurs.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Background
Windows::ApplicationModel::Background [C++]

Metadata

Windows.winmd

See also

SystemTrigger

 

 

Show:
© 2014 Microsoft