C# Class System.ComponentModel.Async

Represents an asynchronous result and the associated task that produces the result.
Inheritance: System.ComponentModel.Model
Show file Open project: nikhilk/silverlightfx Class Usage Examples

Public Methods

Method Description
Cancel ( ) : void

Cancels the completion of the associated task.

Complete ( Exception error ) : void

Completes the associated task with the specified error.

MarkErrorAsHandled ( ) : void

Marks the error as handled.

Protected Methods

Method Description
Complete ( object result ) : void

Completes the associated task with the specified result.

Private Methods

Method Description
Async ( bool supportsCancel ) : System
CancelCore ( ) : void
Complete ( object result, Exception error ) : void
GetDefaultResult ( ) : object

Method Details

Cancel() public method

Cancels the completion of the associated task.
public Cancel ( ) : void
return void

Complete() public method

Completes the associated task with the specified error.
public Complete ( Exception error ) : void
error Exception The error that occurred while completing the task.
return void

Complete() protected method

Completes the associated task with the specified result.
protected Complete ( object result ) : void
result object The result of completing the task.
return void

MarkErrorAsHandled() public method

Marks the error as handled.
public MarkErrorAsHandled ( ) : void
return void