共用方式為


WritingCompletedEventArgs(Boolean, Object, Exception) 建構函式

定義

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

public:
 WritingCompletedEventArgs(bool cancelled, System::Object ^ state, Exception ^ exception);
public WritingCompletedEventArgs (bool cancelled, object state, Exception exception);
new System.Windows.Documents.Serialization.WritingCompletedEventArgs : bool * obj * Exception -> System.Windows.Documents.Serialization.WritingCompletedEventArgs
Public Sub New (cancelled As Boolean, state As Object, exception As Exception)

參數

cancelled
Boolean

如果已取消則為 true,否則如果寫入作業正常完成則為 false

state
Object

傳遞至 WriteAsync 方法的使用者提供的狀態物件。

exception
Exception

寫入作業期間發生的錯誤,如果沒有錯誤則為 null

適用於