API Reference > OdDAI Namespace > Classes > InstanceValidationTask Class > InstanceValidationTask Methods > InstanceValidationTask::validate Method
InstanceValidationTask::validate Method
Syntax
C++
virtual OdDAI::Logical validate(OdDAI::OdBaseInstanceValidationContext* pInstanceCtx, OdSharedPtr<InvalidValidationParamsBase>& invalidParams) = 0;
Parameters 
Description 
OdDAI::OdBaseInstanceValidationContext* pInstanceCtx 
[in] A raw pointer to the validation context with validate entity instance.  
OdSharedPtr<InvalidValidationParamsBase>& invalidParams 
[out] A struct which contains attributes and WR with validation problems.  

Result of instance validation.

Checks attributes of the instance on some rules and retrieves the list of attributes which are not satisfying them.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.