IDesignerLoaderHost.EndLoad(String, Boolean, ICollection) 方法

定义

结束设计器加载操作。Ends the designer loading operation.

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

参数

baseClassName
String

此设计器正在设计的文档的基类的完全限定名。The fully qualified name of the base class of the document that this designer is designing.

successful
Boolean

如果设计器已成功加载,则为 true;否则为 falsetrue if the designer is successfully loaded; otherwise, false.

errorCollection
ICollection

包含加载期间遇到的错误(如果有的话)的集合。A collection containing the errors encountered during load, if any. 如果没有遇到任何错误,则传递空集合或 nullIf no errors were encountered, pass either an empty collection or null.

注解

加载设计文档的 DesignerLoader 调用此方法以指示负载已终止。The DesignerLoader that loads the design document calls this method to indicate that the load terminated.

如果在加载过程中遇到错误,则必须将这些错误作为异常的集合传递到 errorCollection 参数中。If errors are encountered during loading, they must be passed in the errorCollection parameter as a collection of exceptions. 如果它们不是异常,设计器加载程序宿主可以调用 ToString,并将它们作为集合传递。If they are not exceptions, the designer loader host can call ToString on them and pass them as a collection. 如果加载成功,则 errorCollection 参数必须是 null 或空集合。If the load is successful, then the errorCollection parameter must be either null or an empty collection.

适用于

另请参阅