Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RequiredValidator Class

Validates that required value is not empty.

For a list of all members of this type, see RequiredValidator Members .

System.Object
   BaseValidator
      BaseSimpleValidator
         RequiredValidator

[Visual Basic]
Public Class RequiredValidator
    Inherits BaseSimpleValidator
[C#]
public class RequiredValidator : BaseSimpleValidator

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This validator uses following rules to determine if target value is valid:
Target TypeValid Value
A String.Not or an empty string.
A DateTime.Not MinValue and not MaxValue.
One of the number types.Not zero.
A Char.Not MinValue or whitespace.
Any reference type other than String.Not .

You cannot use this validator to validate any value types other than the ones specified in the table above.

Requirements

Namespace: Spring.Validation

Assembly: Spring.Core (in Spring.Core.dll)

See Also

RequiredValidator Members | Spring.Validation Namespace