Event that occurs when the factory finishes loading the document successfully or otherwise.
public event EventHandler<LoadAsyncCompletedEventArgs> Completed
Public Event Completed As EventHandler(Of Leadtools.Documents.LoadAsyncCompletedEventArgs)
public:
event EventHandler<Leadtools::Documents::LoadAsyncCompletedEventArgs^>^ Completed
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 |
For an example, refer to DocumentFactory.LoadFromUriAsync.
Parameter | Type | Description |
---|---|---|
sender | object | The source of the event. |
e | LoadAsyncCompletedEventArgs | The event data. |
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET