C# Класс System.ComponentModel.Async

Represents an asynchronous result and the associated task that produces the result.
Наследование: System.ComponentModel.Model
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Complete ( object result ) : void

Completes the associated task with the specified result.

Приватные методы

Метод Описание
Async ( bool supportsCancel ) : System
CancelCore ( ) : void
Complete ( object result, Exception error ) : void
GetDefaultResult ( ) : object

Описание методов

Cancel() публичный Метод

Cancels the completion of the associated task.
public Cancel ( ) : void
Результат void

Complete() публичный Метод

Completes the associated task with the specified error.
public Complete ( Exception error ) : void
error Exception The error that occurred while completing the task.
Результат void

Complete() защищенный Метод

Completes the associated task with the specified result.
protected Complete ( object result ) : void
result object The result of completing the task.
Результат void

MarkErrorAsHandled() публичный Метод

Marks the error as handled.
public MarkErrorAsHandled ( ) : void
Результат void