public class AsyncCompletedEventArgs extends EventArgs
| Constructor and Description |
|---|
AsyncCompletedEventArgs(java.lang.RuntimeException error,
boolean cancelled,
java.lang.Object userState)
Initializes a new instance of the AsyncCompletedEventArgs class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCancelled()
Gets a value indicating whether an asynchronous operation has been
canceled.
|
java.lang.RuntimeException |
getError()
Gets a value indicating which error occurred during an asynchronous
operation.
|
java.lang.Object |
getUserState()
Gets the unique identifier for the asynchronous task.
|
protected void |
raiseExceptionIfNecessary() |
public AsyncCompletedEventArgs(java.lang.RuntimeException error,
boolean cancelled,
java.lang.Object userState)
error - Any error that occurred during the asynchronous operation.cancelled - A value indicating whether the asynchronous operation was
canceled.userState - An optional user-supplied state object.protected void raiseExceptionIfNecessary()
public boolean getCancelled()
public java.lang.RuntimeException getError()
public java.lang.Object getUserState()