Click or drag to resize

ValidationServiceAddValidation Method

Adds a new validation.

Namespace: GSF.Validation
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
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