C# Class System.ComponentModel.Async

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Complete ( object result ) : void

Completes the associated task with the specified result.

Private Methods

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

Method Details

Cancel() public méthode

Cancels the completion of the associated task.
public Cancel ( ) : void
Résultat void

Complete() public méthode

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

Complete() protected méthode

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

MarkErrorAsHandled() public méthode

Marks the error as handled.
public MarkErrorAsHandled ( ) : void
Résultat void