Sets that a field is required.

Namespace: Castle.Components.Validator
Assembly:  Castle.Components.Validator (in Castle.Components.Validator.dll)
Version: 1.0.3.0

Syntax

C#
void SetAsRequired(
	string target,
	string violationMessage
)

Parameters

target
String
The target name (ie, a hint about the controller being validated)
violationMessage
String
The violation message.

See Also