←Select platform

Completed Event (LoadDocumentAsyncOptions)

Summary

Event that occurs when the factory finishes loading the document successfully or otherwise.

Syntax

C#
VB
C++
public event EventHandler<Leadtools.Documents.LoadAsyncCompletedEventArgs> Completed
Public Event Completed As EventHandler(Of Leadtools.Documents.LoadAsyncCompletedEventArgs)
public:  
   event EventHandler<Leadtools::Documents::LoadAsyncCompletedEventArgs^>^ Completed 

Remarks

Completed will occur once when the factory finishes loading the document successfully or otherwise. It uses the LoadAsyncCompletedEventArgs event data class that is populated with the following:

Member Value
System.ComponentModel.AsyncCompletedEventArgs.Cancelled true if the user has aborted the current operation, false otherwise..
System.ComponentModel.AsyncCompletedEventArgs.UserState The same value originally set by the user in LoadDocumentAsyncOptions.UserState.
System.ComponentModel.AsyncCompletedEventArgs.Error The error object thrown if any.
Uri The location of the document loaded. This is the uri value passed to LoadFromUriAsync
Document The result Document object if the load operation was successful, null otherwise
Example

For an example, refer to DocumentFactory.LoadFromUriAsync.

Event Data
ParameterTypeDescription
senderobjectThe source of the event.
eLoadAsyncCompletedEventArgsThe event data.
Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Documents Assembly
Click or drag to resize