Validate

This optional method is used to validate the user choices. The values of the properties entered, the probes etc. can be checked for suitability. This function, while a part of the IUDOExtensionabstract class, has a meaningful default implementation and is therefore optional. However, it can be overridden to take advantage of advanced functionality.


UI Access NA
Parameters
Name Type Description
<errorStringList> List<string> [out] C# list of Python strings. Should be set only if validation failed; ignored if validation is successful. One error string should be set per each validation error.
<udsProbParams> List<UDSProbeParams> [in] C# list of UDSProbeParams objects.
<propList> IPropertyList object [in] list of properties
<userSelectionForDynamicProbes> List<UDSProbeParams> [in] C# list of UDSProbeParams objects.
Return Value Boolean. True on validation success and false on failure. The default implementation always returns true.

Python Syntax Validate (<errorList>, <probeList>, <propertiesList>, <dynamicProbes>)
Python Example
def Validate(self, errorStringList, probeList, propList, dynamicProbes):
    if probeList == None or probeList.Count == 0:
        errorStringList.Add("Empty probe list")
        return False
    return True