API Reference > OdMvdXml Namespace > Classes > OdMvdXmlTemplateRef Class > OdMvdXmlTemplateRef Methods > OdMvdXmlTemplateRef::checkInstance Method
OdMvdXmlTemplateRef::checkInstance Method
Syntax
C++
OdResult checkInstance(const OdDAI::ApplicationInstance* pInstance, bool& result);
Parameters 
Description 
const OdDAI::ApplicationInstance* pInstance 
[in] Pointer to instance object for validation.  
bool& result 
[out] This value is set to true if the instance dataset meets all the restrictions of the exchange request, otherwise this value is set to false.
 

eOk if the instance was successfully checked; otherwise, the method returns an appropriate error code.

Data validation checks if a instance data set fulfils all constraints of an exchange requirement. If required data is missing or wrong then the check fails. 

 

If return value is not eOk - value of 'result' parameter is undefined.

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