Table of Contents

Interface IAsyncTask

Namespace
Aspose.Imaging.AsyncTask
Assembly
Aspose.Imaging.dll

The asynchronous task.

public interface IAsyncTask : IAsyncResult, IDisposable
Inherited Members

Properties

Error

Gets the task error which is available after the task is completed.

Exception Error { get; }

Property Value

Exception

The task error.

See Also

IsBusy

Gets a value indicating whether this task is currently running.

bool IsBusy { get; }

Property Value

bool

true if this task is currently running; otherwise, false.

See Also

IsCanceled

Gets a value indicating whether this task was canceled.

bool IsCanceled { get; }

Property Value

bool

true if this task was canceled; otherwise, false.

See Also

IsFaulted

Gets a value indicating whether this task was faulted.

bool IsFaulted { get; }

Property Value

bool

true if this task was faulted; otherwise, false.

See Also

ProgressEventHandler

Gets or sets the progress event handler of the asynchronous task.

ProgressEventHandler ProgressEventHandler { get; set; }

Property Value

ProgressEventHandler

The progress event handler of the asynchronous task.

See Also

Result

Gets the result of this task.

object Result { get; }

Property Value

object

The result of this task.

See Also

Methods

Abort()

Aborts this task. The task is completed immediately, with the risk of not freeing internal unmanaged resources.

void Abort()
See Also

Cancel()

Cancels this task. The task is completed safely by the controlled stopping of the algorithm.

void Cancel()
See Also

RunAsync()

Runs this task.

void RunAsync()
See Also

RunAsync(ThreadPriority)

Runs this task.

void RunAsync(ThreadPriority priority)

Parameters

priority ThreadPriority

The thread priority.

See Also

SetCompleteCallback(CompleteCallback)

Sets the complete callback delegate.

void SetCompleteCallback(CompleteCallback completeCallback)

Parameters

completeCallback CompleteCallback

The complete callback.

See Also

See Also