Errors.DeleteAll Method
Deletes all of the ErrorObject objects contained in the ErrorsCollection collection.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Remarks
To delete a specific Error object from the Errors collection, use the Delete method.
Note
Unlike the Delete method that will only delete errors that were created using the Add method, the DeleteAll method will delete all errors in the collection, regardless of how they were created.
Example
In the following example, the DeleteAll method of the ErrorsCollection collection is used to delete all the errors that it contains:
thisXDocument.Errors.DeleteAll();
See Also
Reference
Errors Interface
Errors Members
Microsoft.Office.Interop.InfoPath Namespace