Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MSApp object

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Represents an asynchronous operation within a Windows app using JavaScript.

Syntax


var asyncOperation = MSApp.clearTemporaryWebDataAsync();
asyncOperation.oncomplete = function() { console.log("Temporary web data cleared successfully"); };
asyncOperation.onerror = function() { console.log("Failed to clear temporary web data"); };
asyncOperation.start();

Members

The MSApp object has these types of members:

Methods

The MSApp object has these methods.

MethodDescription
start

Starts the MSAppAsyncOperation.

 

Properties

The MSApp object has these properties.

PropertyDescription

error property

Represents an error in MSAppAsyncOperation.

oncomplete

Property for setting an event handler on completion of MSAppAsyncOperation.

onerror property

Property for setting an event handler upon an error during MSAppAsyncOperation.

readyState property

Represents the state of the asynchronous operation within the Windows app using JavaScript.

result property

Represents the result of MSAppAsyncOperation.

 

 

 

Show: