Click or drag to resize
ValidationOpts Class
Common validation options that can be specified for all validation methods.
Inheritance Hierarchy
SystemObject
  DataTablesValidationOpts

Namespace:  DataTables
Assembly:  DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax
C#
public class ValidationOpts

The ValidationOpts type exposes the following members.

Constructors
  NameDescription
Public methodValidationOpts
Initializes a new instance of the ValidationOpts class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberSelect
Check to see if validation options have been given. If not, create and instance with the default options and return that. This is useful for checking to see if a user has passed in validation options or not, since a new instance can't be a default parameter value.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldEmpty
Allow a field to be empty, i.e. a zero length string - `''` (`true` - default) or require it to be non-zero length (`false`).
Public fieldMessage
Error message should the validation fail
Public fieldOptional
Require the field to be submitted (`false`) or not (`true` - default). When set to `true` the field does not need to be included in the list of parameters sent by the client - if set to `false` then it must be included. This option can be particularly useful in Editor as Editor will not set a value for fields which have not been submitted - giving the ability to submit just a partial list of options.
Top
See Also