GetPageNumberCompletedEventArgs Constructor

Definición

Inicializa una nueva instancia de la clase GetPageNumberCompletedEventArgs.

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)

Parámetros

contentPosition
ContentPosition

Parámetro contentPosition que se pasa a GetPageNumberAsync(ContentPosition).

pageNumber
Int32

Número de página donde aparece contentPosition.

error
Exception

Excepción producida durante la operación asincrónica; o NULL si no hubo errores.

cancelled
Boolean

true si se canceló la operación asincrónica; de lo contrario, false.

userState
Object

Parámetro userState único que se ha pasado a GetPageNumberAsync(ContentPosition).

Comentarios

La operación asincrónica se puede cancelar llamando a CancelAsync.

Se aplica a

Consulte también