共用方式為


DataAsyncCommandCompletedEventArgs<T> 建構函式

使用指定的參數,初始化 DataAsyncCommandCompletedEventArgs<T> 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Public Sub New ( _
    error As Exception, _
    cancelled As Boolean, _
    returnValue As T, _
    userState As Object _
)
public DataAsyncCommandCompletedEventArgs(
    Exception error,
    bool cancelled,
    T returnValue,
    Object userState
)
public:
DataAsyncCommandCompletedEventArgs(
    Exception^ error, 
    bool cancelled, 
    T returnValue, 
    Object^ userState
)
new : 
        error:Exception * 
        cancelled:bool * 
        returnValue:'T * 
        userState:Object -> DataAsyncCommandCompletedEventArgs
public function DataAsyncCommandCompletedEventArgs(
    error : Exception, 
    cancelled : boolean, 
    returnValue : T, 
    userState : Object
)

參數

  • error
    類型:Exception

    在執行作業時所發生的例外狀況,,如果有的話。

  • cancelled
    類型:Boolean

    指示作業是否 Boolean 值中移除。

  • returnValue
    類型:T

    執行作業的傳回值。

  • userState
    類型:Object

    非同步處理序的唯一識別項。

.NET Framework 安全性

請參閱

參考

DataAsyncCommandCompletedEventArgs<T> 類別

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間