MSWebViewAsyncOperation object
Note
The features described in this document are no longer being maintained. For more information on the new WebView2 control, see Introduction to Microsoft Edge WebView2 (Preview).
Exposes whether the operation completed successfully or failed.
Events
complete
Indicates that the operation completed.
function handler(eventInfo) { /* Your code */ }
// addEventListener syntax
MSWebViewAsyncOperation.addEventListener("complete", handler);
MSWebViewAsyncOperation.removeEventListener("complete", handler);
Event Information
Interface | Event |
Synchronous | Yes |
Bubbles | No |
Cancelable | No |
error
Indicates that there was an error with the operation.
function handler(eventInfo) { /* Your code */ }
// addEventListener syntax
MSWebViewAsyncOperation.addEventListener("error", handler);
MSWebViewAsyncOperation.removeEventListener("error", handler);
Event Information
Interface | Event |
Synchronous | Yes |
Bubbles | No |
Cancelable | No |
Methods
start
Called to start the async task.
MSWebViewAsyncOperation.start();
Parameters
This method does not have parameters.
Return value
This method does not return a value.
Properties
error
The error that occurred.
This property is read-only.
var error = MSWebViewAsyncOperation.error;
Property value
Type: DOMError
oncomplete
The complete event handler.
var oncomplete = MSWebViewAsyncOperation.oncomplete;
Property value
Type: EventHandler
onerror
The error event handler.
var onerror = MSWebViewAsyncOperation.onerror;
Property value
Type: EventHandler
readyState
Describes the ready state of the object.
This property is read-only.
var readyState = MSWebViewAsyncOperation.readyState;
Property value
Type: unsigned short
result
The result of the operation.
This property is read-only.
var result = MSWebViewAsyncOperation.result;
Property value
Type: any
target
The target of the operation.
This property is read-only.
var target = MSWebViewAsyncOperation.target;
Property value
Type: MSHTMLWebViewElement
type
The type of the operation.
This property is read-only.
var type = MSWebViewAsyncOperation.type;
Property value
Type: unsigned short