SuspendingOperation class

Applies to Windows and Windows Phone

Manages an app suspension operation.

Syntax


var suspendingOperation = promise.operation;

Attributes

[MarshalingBehavior(Standard)]
[Version(0x06020000)]

Members

The SuspendingOperation class has these types of members:

Methods

The SuspendingOperation class has these methods.

MethodDescription
GetDeferral Requests that the app suspension operation be delayed.

 

Properties

The SuspendingOperation class has these properties.

PropertyAccess typeDescription

Deadline

Read-onlyGets the time remaining before a delayed app suspension operation continues.

 

Remarks

Use the SuspendingEventArgs.suspendingOperation property to get the object.

Note  : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.WebUI

Metadata

Windows.winmd

See also

Tasks
How to suspend an app
Reference
SuspendingEventArgs
Samples
App activated, resume, and suspend using the WRL sample

 

 

Show:
© 2014 Microsoft. All rights reserved.