DocumentPaginator.GetPageAsync Method (Int32, Object)
Assembly: PresentationCore (in PresentationCore.dll)
This overload of the method makes it possible to cancel this asynchronous operation without cancelling all asynchronous operations.
The following steps illustrate how to retrieve a DocumentPage asynchronously:
Call specifying the pageNumber desired and a unique userState, which will be used to identify the completion of the asynchronous event.
When the event occurs and the delegate is called, compare the event's GetPageCompletedEventArgs.UserState property with the original userState parameter. (The GetPageCompletedEventArgs.PageNumber property will also match the pageNumber specified in the call.)
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.