共用方式為


ModelErrorCollection.Add 方法

定義

多載

Add(Exception)

加入指定的 exception 實例。

Add(String)

加入指定的錯誤訊息。

Add(Exception)

來源:
ModelErrorCollection.cs
來源:
ModelErrorCollection.cs

加入指定的 exception 實例。

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

參數

exception
Exception

Exception

適用於

Add(String)

來源:
ModelErrorCollection.cs
來源:
ModelErrorCollection.cs

加入指定的錯誤訊息。

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

參數

errorMessage
String

錯誤訊息。

適用於