ActivityCodeDomSerializationManager.ReportError(Object) 方法

定义

报告序列化中的错误。Reports an error in serialization.

public:
 virtual void ReportError(System::Object ^ errorInformation);
public void ReportError (object errorInformation);
abstract member ReportError : obj -> unit
override this.ReportError : obj -> unit
Public Sub ReportError (errorInformation As Object)

参数

errorInformation
Object

一个 Object,其中包含要报告的错误。An Object that contains the error to report.

实现

注解

errorInformation 可以为任意对象类型。errorInformation can be of any object type. 如果对象是一个异常,则将提取该异常的消息并报告给用户。If the object is an exception, the message of the exception is extracted and reported to the user. 如果对象是任意其他类型,则调用 Object.ToStringIf the object is any other type, Object.ToString

以便向用户显示信息。is called to display the information to the user.

ReportError 提供了对相同名称的 SerializationManager 方法的间接引用。ReportError provides an indirect reference to the SerializationManager method of the same name.

适用于