←Select platform

Completed Event

Summary

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

Syntax
C#
VB
C++
public event EventHandler<LoadAsyncCompletedEventArgs> Completed 
Public Event Completed As EventHandler(Of Leadtools.Document.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 LEADDocument 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

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly