DataAsyncCommandCompletedEventArgs<T> Constructor

Definition

Initializes a new instance of the DataAsyncCommandCompletedEventArgs<T> class with the specified parameters.

public:
 DataAsyncCommandCompletedEventArgs(Exception ^ error, bool cancelled, T returnValue, System::Object ^ userState);
public DataAsyncCommandCompletedEventArgs (Exception error, bool cancelled, T returnValue, object userState);
new Microsoft.VisualStudio.Data.Services.SupportEntities.DataAsyncCommandCompletedEventArgs<'T> : Exception * bool * 'T * obj -> Microsoft.VisualStudio.Data.Services.SupportEntities.DataAsyncCommandCompletedEventArgs<'T>
Public Sub New (error As Exception, cancelled As Boolean, returnValue As T, userState As Object)

Parameters

error
Exception

The exception that occurred during the operation execution, if any.

cancelled
Boolean

A Boolean value indicating whether the operation was cancelled.

returnValue
T

The return value of the executed operation.

userState
Object

A unique identifier for the asynchronous process.

Applies to