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

适用于