ValidationResult Constructor
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public ValidationResult(
string propertyName,
string message,
ValidationSeverity severity = ValidationSeverity.Error
)
Public Sub New (
propertyName As String,
message As String,
Optional severity As ValidationSeverity = ValidationSeverity.Error
)
public:
ValidationResult(
String^ propertyName,
String^ message,
ValidationSeverity severity = ValidationSeverity::Error
)
new :
propertyName : string *
message : string *
?severity : ValidationSeverity
(* Defaults:
let _severity = defaultArg severity ValidationSeverity.Error
*)
-> ValidationResult
Parameters
- propertyName String
- Name of the property to which this ValidationResult belongs.
- message String
- The message of this ValidationResult.
- severity ValidationSeverity (Optional)
- The severity of the ValidationResult. This parameter is optional.
Default value: Error.