Share via


ModelValidationResult(String, String) Constructor

Definition

Initializes a new instance of 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)

Parameters

memberName
String

The name of the entry on which validation was performed.

message
String

The validation message.

Applies to