Click or drag to resize

ValidationServiceAddValidation Method

Adds a new validation.

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