通过


PictureBoxArray.LoadCompleted 事件

定义

在异步映像加载操作完成、取消或引发异常时发生。

public:
 event System::ComponentModel::AsyncCompletedEventHandler ^ LoadCompleted;
public event System.ComponentModel.AsyncCompletedEventHandler LoadCompleted;
member this.LoadCompleted : System.ComponentModel.AsyncCompletedEventHandler 
Public Custom Event LoadCompleted As AsyncCompletedEventHandler 
Public Event LoadCompleted As AsyncCompletedEventHandler 

事件类型

注解

LoadCompleted仅当使用其中一LoadAsync种方法以异步方式加载映像且为 false 时,WaitOnLoad才会发生该事件。 如果通过调用CancelAsync方法取消映像加载,则CancelledAsyncCompletedEventArgs属性将设置为 true。 如果在加载过程中发生异常或错误,将捕获该异常,并且 ErrorAsyncCompletedEventArgs 属性将包含异常信息。

有关如何处理事件的详细信息,请参阅 处理和引发事件

注释

命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,才需要它们。

适用于