共用方式為


ModelValidationResult(String, String) 建構函式

定義

初始化 ModelValidationResult 的新執行個體。

public:
 ModelValidationResult(System::String ^ memberName, System::String ^ message);
public ModelValidationResult (string memberName, string message);
public ModelValidationResult (string? memberName, string? message);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult : string * string -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationResult
Public Sub New (memberName As String, message As String)

參數

memberName
String

執行驗證的專案名稱。

message
String

驗證訊息。

適用於