共用方式為


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
    型別:System.Exception
    在執行作業時所發生的例外狀況,,如果有的話。
  • cancelled
    型別:System.Boolean
    指示作業是否 Boolean 值中移除。
  • returnValue
    型別:T
    執行作業的傳回值。
  • userState
    型別:System.Object
    非同步處理序的唯一識別項。

.NET Framework 安全性

請參閱

參考

DataAsyncCommandCompletedEventArgs<T> 類別

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