Adds an error to the collection.

Namespace:  Mindscape.LightSpeed.Validation
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public void AddError(
	string propertyName,
	string errorMessage,
	ValidationRule rule
)
Visual Basic (Declaration)
Public Sub AddError ( _
	propertyName As String, _
	errorMessage As String, _
	rule As ValidationRule _
)

Parameters

propertyName
Type: System..::.String
Name of the property in error.
errorMessage
Type: System..::.String
The error message.
rule
Type: Mindscape.LightSpeed.Validation..::.ValidationRule
The validation rule raising the error.

See Also