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

验证消息。

适用于