GetPageCompletedEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
传递给 GetPageAsync(Int32, Object) 的 pageNumber
参数。
- error
- Exception
异步操作期间发生的异常;如果没有错误,则为 NULL。
- cancelled
- Boolean
如果已取消异步操作,则为 true
;否则为 false
。
- userState
- Object
传递给 GetPageAsync(Int32, Object) 的唯一 userState
参数。
注解
可以通过调用 CancelAsync来取消异步操作。