ValidationResult Constructor

Initializes a new instance of the ValidationResult class.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public ValidationResult(
	string propertyName,
	string message,
	ValidationSeverity severity = ValidationSeverity.Error
)

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.

See Also