IWbsFieldValidator Interface

Validates IWbsField objects. It checks for any inconsistencies.
Public Interface IWbsFieldValidator
This language is not supported or no code example is available.
public interface IWbsFieldValidator
This language is not supported or no code example is available.
Methods
 
Name Description
Public method Validate(IWbsField) Validates a WBS field.
Public method Validate(IWbsField, IEnumerable<IWbsField>) Validates a WBS field.
Top
Remarks
 

The validator is used internally by IWbsFieldsRepository when it adds or updates the fields. When a problem occurs, the InvalidWbsFieldException with a corresponding IWbsFieldValidationResult will be thrown.

So normally, you don't need to use the validator manually. But if you want to test your added or modified fields before applying the changes to the repository, you can call methods of this interface yourself. You can get a validator instance from IWbsFieldsRepository.Validator property.

Note that the repository uses more strict validation that is publicly available via this interface. It may happen, that you still get a validation error when you update your field in the repository, even though your manual validation didn't produce any errors.

Version
 
Available since QDV 7.18.655.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition