CompareAttribute.FormatErrorMessage(String) 方法

定義

根據錯誤發生的資料欄位,對錯誤訊息套用格式化。

public:
 override System::String ^ FormatErrorMessage(System::String ^ name);
public override string FormatErrorMessage(string name);
override this.FormatErrorMessage : string -> string
Public Overrides Function FormatErrorMessage (name As String) As String

參數

name
String

造成驗證失敗的欄位名稱。

傳回

格式化錯誤訊息。

適用於