API Reference > OdDAI Namespace > Classes > StringWidthValidationTask Class > StringWidthValidationTask Methods > StringWidthValidationTask::validate Method
StringWidthValidationTask::validate Method
Syntax
C++
virtual OdDAI::Logical validate(OdDAI::OdBaseInstanceValidationContext* pInstanceCtx, OdSharedPtr<InvalidValidationParamsBase>& invalidParams) override;
Parameters 
Description 
OdDAI::OdBaseInstanceValidationContext* pInstanceCtx 
[in] A raw pointer to the validation context with validate entity instance.  
OdSharedPtr<InvalidValidationParamsBase>& invalidParams 
[out] The struct with an array of pointers to Attribute instances which have incorrect width for the application instance.  

True if all attribute string values are of correct width, False if width constraint is violated, and Unknown if expression evaluation value is unknown or indeterminate.

Checks whether the instance has string attributes with incorrect width and retrieves the list of such attributes.

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