Share via


IDesignerLoaderService.DependentLoadComplete(Boolean, ICollection) 方法

定义

发出信号表示已完成依赖加载。

public:
 void DependentLoadComplete(bool successful, System::Collections::ICollection ^ errorCollection);
public void DependentLoadComplete (bool successful, System.Collections.ICollection errorCollection);
public void DependentLoadComplete (bool successful, System.Collections.ICollection? errorCollection);
abstract member DependentLoadComplete : bool * System.Collections.ICollection -> unit
Public Sub DependentLoadComplete (successful As Boolean, errorCollection As ICollection)

参数

successful
Boolean

如果设计器的加载成功,则为 true;如果出现的错误阻止了加载完成,则为 false

errorCollection
ICollection

加载期间发生的错误(如果有的话)的集合。 如果没有发生任何错误,则传递空集合或 null

注解

调用此方法以指示依赖加载操作已完成。 为通过调用 DependentLoadComplete 注册的每个进程调用一次,该进程 AddLoadDependency已完成。

如果依赖加载成功,调用方会将 successful 参数设置为 true ,并将空集合或 null 传递给 errorCollection 参数。 如果依赖负载遇到错误,调用方会将 successful 参数设置为 false ,并将指示失败原因的异常集合传递给参数 errorCollection

适用于