Click or drag to resize

ValidationServiceAddValidation Method

Adds a new validation.

Namespace: GSF.Validation
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public void AddValidation(
	string source,
	IValidator validator
)
View Source

Parameters

source  String
The source that will provide the value to be validated.
validator  IValidator
The IValidator that will validate the value.
Exceptions
ExceptionCondition
ArgumentNullExceptionsource or validator is null.
See Also