System.ComponentModel.RunWorkerCompletedEventArgs.Result Property

Gets a value that represents the result of an asynchronous operation.

Syntax

public object Result { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Your BackgroundWorker.RunWorkerCompleted event handler should always check the AsyncCompletedEventArgs.Error and AsyncCompletedEventArgs.Cancelled properties before accessing the RunWorkerCompletedEventArgs.Result property. If an exception was raised or if the operation was canceled, accessing the RunWorkerCompletedEventArgs.Result property raises an exception.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0