Redigera

Dela via


GetPageNumberCompletedEventArgs Constructor

Definition

Initializes a new instance of the GetPageNumberCompletedEventArgs class.

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

Parameters

contentPosition
ContentPosition

The contentPosition parameter passed to GetPageNumberAsync(ContentPosition).

pageNumber
Int32

The page number where the contentPosition appears.

error
Exception

The exception that occurred during the asynchronous operation; or NULL if there were no errors.

cancelled
Boolean

true if the asynchronous operation was canceled; otherwise, false.

userState
Object

The unique userState parameter passed to GetPageNumberAsync(ContentPosition).

Remarks

The asynchronous operation can be canceled by calling CancelAsync.

Applies to

See also