편집

다음을 통해 공유


DocumentPaginator.ComputePageCountAsync Method

Definition

Asynchronously, forces a pagination of the content, updates PageCount with the new total, and sets IsPageCountValid to true.

Overloads

ComputePageCountAsync()

Asynchronously, forces a pagination of the content, updates PageCount with the new total, and sets IsPageCountValid to true.

ComputePageCountAsync(Object)

Asynchronously, forces a pagination of the content, updates PageCount with the new total, sets IsPageCountValid to true.

ComputePageCountAsync()

Asynchronously, forces a pagination of the content, updates PageCount with the new total, and sets IsPageCountValid to true.

public:
 virtual void ComputePageCountAsync();
public virtual void ComputePageCountAsync ();
abstract member ComputePageCountAsync : unit -> unit
override this.ComputePageCountAsync : unit -> unit
Public Overridable Sub ComputePageCountAsync ()

Remarks

The only way to cancel the asynchronous operation of this method is to cancel all asynchronous operations. Contrast this with the other overload of this method: ComputePageCountAsync(Object).

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by ComputePageCount().

Applies to

ComputePageCountAsync(Object)

Asynchronously, forces a pagination of the content, updates PageCount with the new total, sets IsPageCountValid to true.

public:
 virtual void ComputePageCountAsync(System::Object ^ userState);
public virtual void ComputePageCountAsync (object userState);
abstract member ComputePageCountAsync : obj -> unit
override this.ComputePageCountAsync : obj -> unit
Public Overridable Sub ComputePageCountAsync (userState As Object)

Parameters

userState
Object

A unique identifier for the asynchronous task.

Remarks

The specified ID is assigned to the asynchronous task.

This overload of the method makes it possible to cancel this asynchronous operation without cancelling all asynchronous operations.

Applies to