Show / Hide Table of Contents

Class RowValidator

Class for validating database fields.

Inheritance
Object
RowValidator
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class RowValidator : Hashtable
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

Constructors

RowValidator(String)

Default constructor.

Declaration
public RowValidator(string tableName)
Parameters
Type Name Description
String tableName

Name of the table to validate against.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

Properties

Item[String]

Look up the validation result for a field.

Declaration
public FieldValidator this[string fieldName] { get; }
Parameters
Type Name Description
String fieldName

Name of the field to look up.

Property Value
Type Description
FieldValidator
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

Methods

ToBool()

Checks if the RowValidator has invalidated any fields.

Declaration
public bool ToBool()
Returns
Type Description
Boolean

False if the RowValidator found any field to be invalid.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ToException()

Get an exception holding the validation result.

Declaration
public Exception ToException()
Returns
Type Description
Exception

Exception holding the validation result.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ActivityStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ActivityStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ActivityStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AddressType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AddressType field, FieldInfo fieldInfo)
Parameters
Type Name Description
AddressType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AiTextStyle, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AiTextStyle field, FieldInfo fieldInfo)
Parameters
Type Name Description
AiTextStyle field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AllDayEvent, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AllDayEvent field, FieldInfo fieldInfo)
Parameters
Type Name Description
AllDayEvent field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AppAvailState, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AppAvailState field, FieldInfo fieldInfo)
Parameters
Type Name Description
AppAvailState field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AppointmentCautionWarning, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AppointmentCautionWarning field, FieldInfo fieldInfo)
Parameters
Type Name Description
AppointmentCautionWarning field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AppointmentExternalOwner, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AppointmentExternalOwner field, FieldInfo fieldInfo)
Parameters
Type Name Description
AppointmentExternalOwner field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AppointmentPrivate, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AppointmentPrivate field, FieldInfo fieldInfo)
Parameters
Type Name Description
AppointmentPrivate field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AppointmentStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AppointmentStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
AppointmentStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AppointmentType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AppointmentType field, FieldInfo fieldInfo)
Parameters
Type Name Description
AppointmentType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ArchiveBehaviour, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ArchiveBehaviour field, FieldInfo fieldInfo)
Parameters
Type Name Description
ArchiveBehaviour field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AssignmentStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AssignmentStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
AssignmentStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref AssociateType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref AssociateType field, FieldInfo fieldInfo)
Parameters
Type Name Description
AssociateType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref BadgeType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref BadgeType field, FieldInfo fieldInfo)
Parameters
Type Name Description
BadgeType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref BatchTaskCancellationBehaviour, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref BatchTaskCancellationBehaviour field, FieldInfo fieldInfo)
Parameters
Type Name Description
BatchTaskCancellationBehaviour field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref BatchTaskState, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref BatchTaskState field, FieldInfo fieldInfo)
Parameters
Type Name Description
BatchTaskState field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref BlobLinkType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref BlobLinkType field, FieldInfo fieldInfo)
Parameters
Type Name Description
BlobLinkType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref BookingType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref BookingType field, FieldInfo fieldInfo)
Parameters
Type Name Description
BookingType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CalMethod, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CalMethod field, FieldInfo fieldInfo)
Parameters
Type Name Description
CalMethod field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CalReplyStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CalReplyStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
CalReplyStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CcTemplateType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CcTemplateType field, FieldInfo fieldInfo)
Parameters
Type Name Description
CcTemplateType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChangePasswordType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChangePasswordType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChangePasswordType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChatMessageSpecialType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChatMessageSpecialType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChatMessageSpecialType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChatMessageType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChatMessageType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChatMessageType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChatSessionFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChatSessionFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChatSessionFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChatSessionStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChatSessionStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChatSessionStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChatStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChatStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChatStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChatTopicFlag, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChatTopicFlag field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChatTopicFlag field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ChatWidgetSize, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ChatWidgetSize field, FieldInfo fieldInfo)
Parameters
Type Name Description
ChatWidgetSize field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ColorIndex, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ColorIndex field, FieldInfo fieldInfo)
Parameters
Type Name Description
ColorIndex field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CommandAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CommandAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
CommandAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CommandActionResult, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CommandActionResult field, FieldInfo fieldInfo)
Parameters
Type Name Description
CommandActionResult field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ConceptualImageType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ConceptualImageType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ConceptualImageType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ConfigType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ConfigType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ConfigType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CredentialControlType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CredentialControlType field, FieldInfo fieldInfo)
Parameters
Type Name Description
CredentialControlType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CredentialUsage, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CredentialUsage field, FieldInfo fieldInfo)
Parameters
Type Name Description
CredentialUsage field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CrmActorType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CrmActorType field, FieldInfo fieldInfo)
Parameters
Type Name Description
CrmActorType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref CustomFieldType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref CustomFieldType field, FieldInfo fieldInfo)
Parameters
Type Name Description
CustomFieldType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashboardLayout, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashboardLayout field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashboardLayout field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashboardTileEntityType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashboardTileEntityType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashboardTileEntityType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashboardTileOptionType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashboardTileOptionType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashboardTileOptionType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashboardTileType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashboardTileType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashboardTileType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashTileCurrencyMode, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashTileCurrencyMode field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashTileCurrencyMode field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashTileEntityType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashTileEntityType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashTileEntityType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashTileMeasure, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashTileMeasure field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashTileMeasure field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashTileType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashTileType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashTileType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DashTileUsage, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DashTileUsage field, FieldInfo fieldInfo)
Parameters
Type Name Description
DashTileUsage field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DeltaState, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DeltaState field, FieldInfo fieldInfo)
Parameters
Type Name Description
DeltaState field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DeltaType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DeltaType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DeltaType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DesignType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DesignType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DesignType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DocTmplDirection, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DocTmplDirection field, FieldInfo fieldInfo)
Parameters
Type Name Description
DocTmplDirection field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DocTmplInvitationType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DocTmplInvitationType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DocTmplInvitationType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DocTmplPrivacyType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DocTmplPrivacyType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DocTmplPrivacyType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DocTmplQuoteType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DocTmplQuoteType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DocTmplQuoteType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DocTmplType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DocTmplType field, FieldInfo fieldInfo)
Parameters
Type Name Description
DocTmplType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DocumentHandler, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DocumentHandler field, FieldInfo fieldInfo)
Parameters
Type Name Description
DocumentHandler field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Domain, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref Domain field, FieldInfo fieldInfo)
Parameters
Type Name Description
Domain field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DurationUnit, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref DurationUnit field, FieldInfo fieldInfo)
Parameters
Type Name Description
DurationUnit field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EFieldRight, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EFieldRight field, FieldInfo fieldInfo)
Parameters
Type Name Description
EFieldRight field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EjUserStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EjUserStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
EjUserStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ElementStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ElementStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ElementStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EmailAccountStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EmailAccountStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
EmailAccountStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EMailFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EMailFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
EMailFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EmailFromType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EmailFromType field, FieldInfo fieldInfo)
Parameters
Type Name Description
EmailFromType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EMailMergeTargetType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EMailMergeTargetType field, FieldInfo fieldInfo)
Parameters
Type Name Description
EMailMergeTargetType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EMailPriority, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EMailPriority field, FieldInfo fieldInfo)
Parameters
Type Name Description
EMailPriority field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EmailReplyToType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EmailReplyToType field, FieldInfo fieldInfo)
Parameters
Type Name Description
EmailReplyToType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EmailType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EmailType field, FieldInfo fieldInfo)
Parameters
Type Name Description
EmailType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ErpActorType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ErpActorType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ErpActorType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ErpSyncResponseCode, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ErpSyncResponseCode field, FieldInfo fieldInfo)
Parameters
Type Name Description
ErpSyncResponseCode field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ETableRight, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ETableRight field, FieldInfo fieldInfo)
Parameters
Type Name Description
ETableRight field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref EventHandlerType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref EventHandlerType field, FieldInfo fieldInfo)
Parameters
Type Name Description
EventHandlerType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ExecuteOnEvent, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ExecuteOnEvent field, FieldInfo fieldInfo)
Parameters
Type Name Description
ExecuteOnEvent field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ExtraDataFieldType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ExtraDataFieldType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ExtraDataFieldType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ExtraFieldFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ExtraFieldFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
ExtraFieldFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FieldAccess, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FieldAccess field, FieldInfo fieldInfo)
Parameters
Type Name Description
FieldAccess field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FieldDataType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FieldDataType field, FieldInfo fieldInfo)
Parameters
Type Name Description
FieldDataType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FieldMetadataType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FieldMetadataType field, FieldInfo fieldInfo)
Parameters
Type Name Description
FieldMetadataType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FormsRecaptchaMode, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FormsRecaptchaMode field, FieldInfo fieldInfo)
Parameters
Type Name Description
FormsRecaptchaMode field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FormSubmissionStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FormSubmissionStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
FormSubmissionStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FormType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FormType field, FieldInfo fieldInfo)
Parameters
Type Name Description
FormType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FreeBusy, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FreeBusy field, FieldInfo fieldInfo)
Parameters
Type Name Description
FreeBusy field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref FreeTextOperator, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref FreeTextOperator field, FieldInfo fieldInfo)
Parameters
Type Name Description
FreeTextOperator field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref GeneratorEncoding, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref GeneratorEncoding field, FieldInfo fieldInfo)
Parameters
Type Name Description
GeneratorEncoding field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref HtmlSanitizerOptions, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref HtmlSanitizerOptions field, FieldInfo fieldInfo)
Parameters
Type Name Description
HtmlSanitizerOptions field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImageEmbedType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImageEmbedType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImageEmbedType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportBlankAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportBlankAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportBlankAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportCompanyDuplicateAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportCompanyDuplicateAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportCompanyDuplicateAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportContactDuplicateMatch, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportContactDuplicateMatch field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportContactDuplicateMatch field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportDuplicateAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportDuplicateAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportDuplicateAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportEntityType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportEntityType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportEntityType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportNewListItem, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportNewListItem field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportNewListItem field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportPersonDuplicateMatch, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportPersonDuplicateMatch field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportPersonDuplicateMatch field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportPhoneUrlsEmail, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportPhoneUrlsEmail field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportPhoneUrlsEmail field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ImportProductDuplicateMatch, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ImportProductDuplicateMatch field, FieldInfo fieldInfo)
Parameters
Type Name Description
ImportProductDuplicateMatch field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref InterRestrictionOperator, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref InterRestrictionOperator field, FieldInfo fieldInfo)
Parameters
Type Name Description
InterRestrictionOperator field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref InvitationStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref InvitationStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
InvitationStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref LocalizedTextType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref LocalizedTextType field, FieldInfo fieldInfo)
Parameters
Type Name Description
LocalizedTextType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref LogEvent, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref LogEvent field, FieldInfo fieldInfo)
Parameters
Type Name Description
LogEvent field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref LoginFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref LoginFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
LoginFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref MailboxType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref MailboxType field, FieldInfo fieldInfo)
Parameters
Type Name Description
MailboxType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref MailClient, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref MailClient field, FieldInfo fieldInfo)
Parameters
Type Name Description
MailClient field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref MessageActionType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref MessageActionType field, FieldInfo fieldInfo)
Parameters
Type Name Description
MessageActionType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref MessageHeaderStdItem, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref MessageHeaderStdItem field, FieldInfo fieldInfo)
Parameters
Type Name Description
MessageHeaderStdItem field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref MessageHeaderStdItemCol, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref MessageHeaderStdItemCol field, FieldInfo fieldInfo)
Parameters
Type Name Description
MessageHeaderStdItemCol field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ModifiedAppointmentFields, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ModifiedAppointmentFields field, FieldInfo fieldInfo)
Parameters
Type Name Description
ModifiedAppointmentFields field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Navigation, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref Navigation field, FieldInfo fieldInfo)
Parameters
Type Name Description
Navigation field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref NotificationEventType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref NotificationEventType field, FieldInfo fieldInfo)
Parameters
Type Name Description
NotificationEventType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref NotificationMessageType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref NotificationMessageType field, FieldInfo fieldInfo)
Parameters
Type Name Description
NotificationMessageType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref NotificationPlatform, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref NotificationPlatform field, FieldInfo fieldInfo)
Parameters
Type Name Description
NotificationPlatform field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref NotifyChannel, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref NotifyChannel field, FieldInfo fieldInfo)
Parameters
Type Name Description
NotifyChannel field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref NotifyType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref NotifyType field, FieldInfo fieldInfo)
Parameters
Type Name Description
NotifyType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref OrderBySortType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref OrderBySortType field, FieldInfo fieldInfo)
Parameters
Type Name Description
OrderBySortType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref PhoneType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref PhoneType field, FieldInfo fieldInfo)
Parameters
Type Name Description
PhoneType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref PrefDescAccessFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref PrefDescAccessFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
PrefDescAccessFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref PrefDescValueType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref PrefDescValueType field, FieldInfo fieldInfo)
Parameters
Type Name Description
PrefDescValueType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref PreferenceLevel, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref PreferenceLevel field, FieldInfo fieldInfo)
Parameters
Type Name Description
PreferenceLevel field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref PublishType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref PublishType field, FieldInfo fieldInfo)
Parameters
Type Name Description
PublishType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref QuoteStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref QuoteStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
QuoteStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref QuoteVersionButtonAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref QuoteVersionButtonAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
QuoteVersionButtonAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref QuoteVersionState, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref QuoteVersionState field, FieldInfo fieldInfo)
Parameters
Type Name Description
QuoteVersionState field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecipientSorting, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecipientSorting field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecipientSorting field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecipientType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecipientType field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecipientType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecurrenceDailyPattern, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecurrenceDailyPattern field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecurrenceDailyPattern field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecurrenceEndType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecurrenceEndType field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecurrenceEndType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecurrenceMonthlyPattern, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecurrenceMonthlyPattern field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecurrenceMonthlyPattern field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecurrencePattern, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecurrencePattern field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecurrencePattern field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecurrenceUpdateMode, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecurrenceUpdateMode field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecurrenceUpdateMode field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RecurrenceYearlyPattern, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RecurrenceYearlyPattern field, FieldInfo fieldInfo)
Parameters
Type Name Description
RecurrenceYearlyPattern field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RefcountFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RefcountFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
RefcountFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Registry, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref Registry field, FieldInfo fieldInfo)
Parameters
Type Name Description
Registry field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RelationTarget, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RelationTarget field, FieldInfo fieldInfo)
Parameters
Type Name Description
RelationTarget field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ReplyTemplateAccessLevel, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ReplyTemplateAccessLevel field, FieldInfo fieldInfo)
Parameters
Type Name Description
ReplyTemplateAccessLevel field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ReplyTemplateBodyFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ReplyTemplateBodyFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
ReplyTemplateBodyFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ReplyTemplateFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ReplyTemplateFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
ReplyTemplateFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ReportCategory, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ReportCategory field, FieldInfo fieldInfo)
Parameters
Type Name Description
ReportCategory field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ReportLayout, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ReportLayout field, FieldInfo fieldInfo)
Parameters
Type Name Description
ReportLayout field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ReportPaperOrientation, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ReportPaperOrientation field, FieldInfo fieldInfo)
Parameters
Type Name Description
ReportPaperOrientation field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref RoleType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref RoleType field, FieldInfo fieldInfo)
Parameters
Type Name Description
RoleType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SaleDone, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SaleDone field, FieldInfo fieldInfo)
Parameters
Type Name Description
SaleDone field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SaleStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SaleStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
SaleStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ScreenChooserType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ScreenChooserType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ScreenChooserType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ScriptType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ScriptType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ScriptType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SelectionSystemType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SelectionSystemType field, FieldInfo fieldInfo)
Parameters
Type Name Description
SelectionSystemType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SelectionType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SelectionType field, FieldInfo fieldInfo)
Parameters
Type Name Description
SelectionType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SelectionUnionType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SelectionUnionType field, FieldInfo fieldInfo)
Parameters
Type Name Description
SelectionUnionType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SenderMailMode, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SenderMailMode field, FieldInfo fieldInfo)
Parameters
Type Name Description
SenderMailMode field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ServiceAuthStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ServiceAuthStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ServiceAuthStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentAddrStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentAddrStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentAddrStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentLinkAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentLinkAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentLinkAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentLinkRedirectKind, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentLinkRedirectKind field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentLinkRedirectKind field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentLinkTaskFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentLinkTaskFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentLinkTaskFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentLinkType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentLinkType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentLinkType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentListStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentListStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentListStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentMessageType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentMessageType field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentMessageType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShipmentStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShipmentStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShipmentStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShowState, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShowState field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShowState field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShowTaskItemInClient, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShowTaskItemInClient field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShowTaskItemInClient field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ShowWindowState, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ShowWindowState field, FieldInfo fieldInfo)
Parameters
Type Name Description
ShowWindowState field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref StatusScreenPanelType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref StatusScreenPanelType field, FieldInfo fieldInfo)
Parameters
Type Name Description
StatusScreenPanelType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref StringSearchType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref StringSearchType field, FieldInfo fieldInfo)
Parameters
Type Name Description
StringSearchType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SystemEventScope, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SystemEventScope field, FieldInfo fieldInfo)
Parameters
Type Name Description
SystemEventScope field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref SystemMessageType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref SystemMessageType field, FieldInfo fieldInfo)
Parameters
Type Name Description
SystemMessageType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TagEntity, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TagEntity field, FieldInfo fieldInfo)
Parameters
Type Name Description
TagEntity field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TargetAssignementLevel, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TargetAssignementLevel field, FieldInfo fieldInfo)
Parameters
Type Name Description
TargetAssignementLevel field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TargetEntityType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TargetEntityType field, FieldInfo fieldInfo)
Parameters
Type Name Description
TargetEntityType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TargetLevel, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TargetLevel field, FieldInfo fieldInfo)
Parameters
Type Name Description
TargetLevel field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TargetMeasurementUnit, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TargetMeasurementUnit field, FieldInfo fieldInfo)
Parameters
Type Name Description
TargetMeasurementUnit field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TargetPeriodType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TargetPeriodType field, FieldInfo fieldInfo)
Parameters
Type Name Description
TargetPeriodType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TaskDirection, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TaskDirection field, FieldInfo fieldInfo)
Parameters
Type Name Description
TaskDirection field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TaskListItemType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TaskListItemType field, FieldInfo fieldInfo)
Parameters
Type Name Description
TaskListItemType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TaskType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TaskType field, FieldInfo fieldInfo)
Parameters
Type Name Description
TaskType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TemporaryKeyDomain, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TemporaryKeyDomain field, FieldInfo fieldInfo)
Parameters
Type Name Description
TemporaryKeyDomain field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TextType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TextType field, FieldInfo fieldInfo)
Parameters
Type Name Description
TextType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketAlertAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketAlertAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketAlertAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketBaseStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketBaseStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketBaseStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketCategoryClosingStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketCategoryClosingStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketCategoryClosingStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketCategoryDelegateMethod, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketCategoryDelegateMethod field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketCategoryDelegateMethod field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketCategoryFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketCategoryFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketCategoryFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketLogAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketLogAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketLogAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketLogFieldChange, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketLogFieldChange field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketLogFieldChange field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketMessageCategory, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketMessageCategory field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketMessageCategory field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketMessageType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketMessageType field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketMessageType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketOrigin, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketOrigin field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketOrigin field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketPriorityEscalateAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketPriorityEscalateAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketPriorityEscalateAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketPriorityEscalateEvent, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketPriorityEscalateEvent field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketPriorityEscalateEvent field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketPriorityFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketPriorityFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketPriorityFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketPriorityStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketPriorityStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketPriorityStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketReadStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketReadStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketReadStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketSecurityLevel, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketSecurityLevel field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketSecurityLevel field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TicketStatusTimeCounter, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TicketStatusTimeCounter field, FieldInfo fieldInfo)
Parameters
Type Name Description
TicketStatusTimeCounter field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TravelEncryptionChild, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TravelEncryptionChild field, FieldInfo fieldInfo)
Parameters
Type Name Description
TravelEncryptionChild field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TravelEncryptionOwn, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TravelEncryptionOwn field, FieldInfo fieldInfo)
Parameters
Type Name Description
TravelEncryptionOwn field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TrlogTransType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TrlogTransType field, FieldInfo fieldInfo)
Parameters
Type Name Description
TrlogTransType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref TtlFlags, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref TtlFlags field, FieldInfo fieldInfo)
Parameters
Type Name Description
TtlFlags field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref UDefFieldType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref UDefFieldType field, FieldInfo fieldInfo)
Parameters
Type Name Description
UDefFieldType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref UdefJustification, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref UdefJustification field, FieldInfo fieldInfo)
Parameters
Type Name Description
UdefJustification field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref UDefType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref UDefType field, FieldInfo fieldInfo)
Parameters
Type Name Description
UDefType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref UpsertNomatchAction, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref UpsertNomatchAction field, FieldInfo fieldInfo)
Parameters
Type Name Description
UpsertNomatchAction field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref UpsertRowActionStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref UpsertRowActionStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
UpsertRowActionStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref UrlEncoding, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref UrlEncoding field, FieldInfo fieldInfo)
Parameters
Type Name Description
UrlEncoding field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref ValueOverride, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref ValueOverride field, FieldInfo fieldInfo)
Parameters
Type Name Description
ValueOverride field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref VideoMeetingStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref VideoMeetingStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
VideoMeetingStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Visibility, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref Visibility field, FieldInfo fieldInfo)
Parameters
Type Name Description
Visibility field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WebhookState, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WebhookState field, FieldInfo fieldInfo)
Parameters
Type Name Description
WebhookState field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Weekday, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref Weekday field, FieldInfo fieldInfo)
Parameters
Type Name Description
Weekday field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WeekOfMonth, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WeekOfMonth field, FieldInfo fieldInfo)
Parameters
Type Name Description
WeekOfMonth field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WidgetRequiredFields, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WidgetRequiredFields field, FieldInfo fieldInfo)
Parameters
Type Name Description
WidgetRequiredFields field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WidgetTheme, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WidgetTheme field, FieldInfo fieldInfo)
Parameters
Type Name Description
WidgetTheme field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowActionType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowActionType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowActionType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowContentType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowContentType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowContentType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowDefinitionStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowDefinitionStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowDefinitionStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowEventType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowEventType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowEventType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowGoalType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowGoalType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowGoalType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowInstanceStatus, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowInstanceStatus field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowInstanceStatus field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowNotifyEmailType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowNotifyEmailType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowNotifyEmailType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowNotifySMSType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowNotifySMSType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowNotifySMSType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowOwnerType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowOwnerType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowOwnerType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowSplitOptionType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowSplitOptionType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowSplitOptionType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowStepType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowStepType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowStepType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowTimeWaitAlgorithm, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowTimeWaitAlgorithm field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowTimeWaitAlgorithm field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowTimeWaitIntervalType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowTimeWaitIntervalType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowTimeWaitIntervalType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowTriggerType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowTriggerType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowTriggerType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref WorkflowWaitForActionType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref WorkflowWaitForActionType field, FieldInfo fieldInfo)
Parameters
Type Name Description
WorkflowWaitForActionType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref LicenseType, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref LicenseType field, FieldInfo fieldInfo)
Parameters
Type Name Description
LicenseType field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref NetServerBuildType, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref NetServerBuildType field, FieldInfo fieldInfo)
Parameters
Type Name Description
NetServerBuildType field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Boolean, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref bool field, FieldInfo fieldInfo)
Parameters
Type Name Description
Boolean field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref DateTime, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref DateTime field, FieldInfo fieldInfo)
Parameters
Type Name Description
DateTime field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Double, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref double field, FieldInfo fieldInfo)
Parameters
Type Name Description
Double field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Int16, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref short field, FieldInfo fieldInfo)
Parameters
Type Name Description
Int16 field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Int32, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref int field, FieldInfo fieldInfo)
Parameters
Type Name Description
Int32 field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Int32[], FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref int[] field, FieldInfo fieldInfo)
Parameters
Type Name Description
Int32[] field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Stream, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref Stream field, FieldInfo fieldInfo)
Parameters
Type Name Description
Stream field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref Object, FieldInfo)

Class for validating database fields.

Declaration
public bool ValidateField(ref object field, FieldInfo fieldInfo)
Parameters
Type Name Description
Object field
FieldInfo fieldInfo
Returns
Type Description
Boolean
Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref String, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref string field, FieldInfo fieldInfo)
Parameters
Type Name Description
String field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateField(ref UInt32, FieldInfo)

Validate a field.

Declaration
public bool ValidateField(ref uint field, FieldInfo fieldInfo)
Parameters
Type Name Description
UInt32 field

Field to validate.

FieldInfo fieldInfo

Description of the field.

Returns
Type Description
Boolean

True of the field validated successfully.

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateNotZero(String, Object, FieldDataType)

Obsolete! Validate that a field does not have a null/zero value

Declaration
public bool ValidateNotZero(string fieldName, object fieldValue, FieldDataType type)
Parameters
Type Name Description
String fieldName

Name of the field.

Object fieldValue

Value of the field.

FieldDataType type

Datatype for the field.

Returns
Type Description
Boolean

False if the field does not meet vaidation requirements

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

ValidateStringLength(String, Int32, String)

Obsolete! Validate that a string does not exceed its' maximum length.

Declaration
public bool ValidateStringLength(string fieldName, int maxLength, string fieldValue)
Parameters
Type Name Description
String fieldName

Name of the field

Int32 maxLength

Maximum value of the field.

String fieldValue

Value of the field

Returns
Type Description
Boolean

False if the field does not meet vaidation requirements

Remarks

Use this class when validating fields before saving them to the database. The result ov the validation is stored in the validator itself. ToBool() will be false if one of the validations failed. ToException() will return an exception holding the validation result.

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

Operators

Explicit(RowValidator to Exception)

Get an exception holding the validation result.

Declaration
public static explicit operator Exception(RowValidator rowValidator)
Parameters
Type Name Description
RowValidator rowValidator

Instance of row validator

Returns
Type Description
Exception

Exception holding the validation result.

Remarks

VB users must use ToException().

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

Implicit(RowValidator to Boolean)

Checks if the RowValidator has invalidated any fields.

Declaration
public static implicit operator bool (RowValidator rowValidator)
Parameters
Type Name Description
RowValidator rowValidator

Instance of row validator

Returns
Type Description
Boolean

False if the RowValidator found any field to be invalid.

Remarks

VB users must use ToBool().

Examples

Validate a field and throw an exception if the validation fails.

RowValidator validator = new RowValidator("myTable");
validator.ValidateField(ref myField, myTableInfo.MyField);
if (!validator.ToBool())
	throw validator.ToException();

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top