AsyncCompletedEventArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 AsyncCompletedEventArgs 類別的新執行個體。
多載
AsyncCompletedEventArgs() |
已淘汰.
初始化 AsyncCompletedEventArgs 類別的新執行個體。 |
AsyncCompletedEventArgs(Exception, Boolean, Object) |
初始化 AsyncCompletedEventArgs 類別的新執行個體。 |
AsyncCompletedEventArgs()
警告
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
初始化 AsyncCompletedEventArgs 類別的新執行個體。
public:
AsyncCompletedEventArgs();
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public AsyncCompletedEventArgs ();
Public Sub New ()
- 屬性
適用於
AsyncCompletedEventArgs(Exception, Boolean, Object)
初始化 AsyncCompletedEventArgs 類別的新執行個體。
public:
AsyncCompletedEventArgs(Exception ^ error, bool cancelled, System::Object ^ userState);
public AsyncCompletedEventArgs (Exception error, bool cancelled, object userState);
public AsyncCompletedEventArgs (Exception? error, bool cancelled, object? userState);
new System.ComponentModel.AsyncCompletedEventArgs : Exception * bool * obj -> System.ComponentModel.AsyncCompletedEventArgs
Public Sub New (error As Exception, cancelled As Boolean, userState As Object)
參數
- error
- Exception
非同步作業期間發生的任何錯誤。
- cancelled
- Boolean
指出非同步作業是否取消的值。
- userState
- Object
傳遞至 RunWorkerAsync(Object) 方法的選擇性使用者提供的狀態物件。