Share via


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
Sub DeleteAll
'Usage
Dim instance As Errors

instance.DeleteAll()
void DeleteAll()

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.

Examples

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