共用方式為


AsyncCompletedEventArgs 建構函式

定義

初始化 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)

來源:
AsyncCompletedEvent.cs
來源:
AsyncCompletedEvent.cs
來源:
AsyncCompletedEvent.cs

初始化 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) 方法的選擇性使用者提供的狀態物件。

適用於