Add or remove a broken rule.

Namespace: BlogEngine.Core
Assembly:  BlogEngine.Core (in BlogEngine.Core.dll)
Version: 1.2.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
protected void AddRule(
	string propertyName,
	string errorMessage,
	bool isBroken
)
Protected Sub AddRule ( _
	propertyName As String, _
	errorMessage As String, _
	isBroken As Boolean _
)
protected:
void AddRule (
	String^ propertyName, 
	String^ errorMessage, 
	bool isBroken
)

Parameters

propertyName
String
The name of the property.
errorMessage
String
The description of the error
isBroken
Boolean
True if the validation rule is broken.

See Also