Edit

Share via


SaveEventHandler Delegate

Definition

Represents the method that will handle the Save event of a form.

public delegate void SaveEventHandler(System::Object ^ sender, SaveEventArgs ^ e);
public delegate void SaveEventHandler(object sender, SaveEventArgs e);
type SaveEventHandler = delegate of obj * SaveEventArgs -> unit
Public Delegate Sub SaveEventHandler(sender As Object, e As SaveEventArgs)

Parameters

sender
Object

The source of the event.

e
SaveEventArgs

A SaveEventArgs object that contains the event data.

Examples

For an example of using the SaveEventHandler delegate, see the sample code in the Save event of the FormEvents class.

Remarks

Important: The code skeleton for an event handler associated with the Save event, which uses the SaveEventHandler delegate, should be added only from the Microsoft InfoPath user interface. For more information on how to add event handlers in InfoPath, see How Do I: Add an Event Handler.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

Applies to