Errors.DeleteAll method

Deletes all of the ErrorObject objects contained in the ErrorsCollection collection.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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.

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

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.SemiTrust namespace