IIQAPIValidateAttribute Method |
Namespace: Informa.ImageQuest.API.Library
The ValidateAttribute(String, String, String) method will verify that a proposed value can be safely stored into an ImageQuest document's index metadata in the specified attribute, without generating an error. It verifies that the attribute exists, that the proposed value can be converted to the appropriate type, and that the proposed value meets all of the constraints defined on the attribute (e.g. length, mask, etc.)
The Success property will contain a true or false value indicating the final validity of the value. The Message property will be populated, if Success is false, with a description of which element of the validity test the attribute and proposed value did not pass.