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
  • Properties

Methods

The MSApp object has these methods.

Method Description
start

Starts the MSAppAsyncOperation.

 

Properties

The MSApp object has these properties.

Property Description

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.