DataAsyncCommandCompletedEventArgs<T> Constructor

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

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Public Sub New ( _
    error As Exception, _
    cancelled As Boolean, _
    returnValue As T, _
    userState As Object _
)
'Usage
Dim error As Exception 
Dim cancelled As Boolean 
Dim returnValue As T
Dim userState As Object 

Dim instance As New DataAsyncCommandCompletedEventArgs(error, cancelled, _
    returnValue, userState)
public DataAsyncCommandCompletedEventArgs(
    Exception error,
    bool cancelled,
    T returnValue,
    Object userState
)
public:
DataAsyncCommandCompletedEventArgs(
    Exception^ error, 
    bool cancelled, 
    T returnValue, 
    Object^ userState
)
public function DataAsyncCommandCompletedEventArgs(
    error : Exception, 
    cancelled : boolean, 
    returnValue : T, 
    userState : Object
)

Parameters

  • error
    Type: System.Exception

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

  • cancelled
    Type: System.Boolean

    A Boolean value indicating whether the operation was cancelled.

  • returnValue
    Type: T

    The return value of the executed operation.

  • userState
    Type: System.Object

    A unique identifier for the asynchronous process.

.NET Framework Security

See Also

Reference

DataAsyncCommandCompletedEventArgs<T> Class

DataAsyncCommandCompletedEventArgs<T> Members

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace