SubmitEventArgs Class
Office 2010
Provides data for the Submit event.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
The SubmitEventArgs object provides the CancelableArgs property for getting a reference to the XmlFormCancelEventArgs class which provides properties for cancelling the event and setting a custom message to display when the event is cancelled.