ModelErrorCollection.Add 方法

定义

重载

Add(Exception)

将指定的 Exception 对象添加到 model-error 集合。

Add(String)

将指定的错误消息添加到模型错误集合中。

Add(Exception)

将指定的 Exception 对象添加到 model-error 集合。

public void Add (Exception exception);
override this.Add : Exception -> unit
Public Sub Add (exception As Exception)

参数

exception
Exception

异常。

适用于

Add(String)

将指定的错误消息添加到模型错误集合中。

public void Add (string errorMessage);
override this.Add : string -> unit
Public Sub Add (errorMessage As String)

参数

errorMessage
String

错误消息。

适用于