使用指定的参数初始化 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。