Click or drag to resize

IAnalysisModelValidatorValidate Method (ValidationMode, IAnalysisObject, IObjectIdentifier)

[This is preliminary documentation and is subject to change.]

Validate an AnalysisObject in context of the model it is assigned to.

Namespace:  ModelExchanger.AnalysisDataModel.Contracts
Assembly:  ModelExchanger.AnalysisDataModel.Contracts (in ModelExchanger.AnalysisDataModel.Contracts.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
ValidationResult Validate(
	ValidationMode mode,
	IAnalysisObject analysisObject,
	IObjectIdentifier objectIdentifier = null
)

Parameters

mode
Type: ModelExchanger.AnalysisDataModel.ContractsValidationMode
The context in which the validation should occur
analysisObject
Type: ModelExchanger.AnalysisDataModelIAnalysisObject
The object to validate
objectIdentifier (Optional)
Type: CSInfrastructure.FluentValidationIObjectIdentifier
Optional identification metadata used to identified the object being validated in specific contexts (eg row number when importing from excel). If null, the AnalysisObject itself will be transformed to an identification object.

Return Value

Type: ValidationResult
A ValidationResult if the object that was validated is invalid. NULL otherwise
See Also