Click or drag to resize

ValidationServiceAddValidation Method

Adds a new validation.

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