Error.ConditionName Property
Gets the name of the ErrorObject object.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Remarks
The ConditionName property is used only for custom errors; it is not used for schema validation–generated or system-generated errors. If the type of error is schema validation generated or system generated, the ConditionName property will return null.
Example
In the following example, the ConditionName property of an instance of the ErrorObject object is used to display the name of a custom error in a message box:
Error firstError = thisXDocument.Errors[0];
thisXDocument.UI.Alert("Error condition name: " + firstError.ConditionName);
See Also
Reference
Error Interface
Error Members
Microsoft.Office.Interop.InfoPath Namespace