語言

AsyncCompletedEventArgs 建構函式

定義

初始化 AsyncCompletedEventArgs 類別的新執行個體。

多載

名稱 Description
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
來源:
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)

適用於