ModelValidationResult(String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.