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
pageNumber參數傳遞給 GetPageAsync(Int32, Object)。
- error
- Exception
非同步操作期間發生的例外;若無錯誤則為 NULL。
- cancelled
- Boolean
true若非同步操作被取消;否則,。 false
- userState
- Object
唯一 userState 參數傳遞給 GetPageAsync(Int32, Object)。
備註
非同步操作可透過呼叫 CancelAsync來取消。