GetPageCompletedEventArgs 构造函数

定义

初始化 GetPageCompletedEventArgs 类的新实例。

public:
 GetPageCompletedEventArgs(System::Windows::Documents::DocumentPage ^ page, int pageNumber, Exception ^ error, bool cancelled, System::Object ^ userState);
public GetPageCompletedEventArgs(System.Windows.Documents.DocumentPage page, int pageNumber, Exception error, bool cancelled, object userState);
new System.Windows.Documents.GetPageCompletedEventArgs : System.Windows.Documents.DocumentPage * int * Exception * bool * obj -> System.Windows.Documents.GetPageCompletedEventArgs
Public Sub New (page As DocumentPage, pageNumber As Integer, error As Exception, cancelled As Boolean, userState As Object)

参数

page
DocumentPage

DocumentPage所请求pageNumber的 。

pageNumber
Int32

pageNumber传递给 GetPageAsync(Int32, Object).. 的参数

error
Exception

异步操作期间发生的异常;如果没有错误,则为 NULL。

cancelled
Boolean

true 如果异步操作已取消,则为否则,为 false.

userState
Object

传递给userState的唯一GetPageAsync(Int32, Object)参数。

注解

可以通过调用 CancelAsync来取消异步操作。

适用于

另请参阅