'Declaration
Public Event SavingChanges As System.EventHandler(Of CancelEventArgs)
public event System.EventHandler<CancelEventArgs> SavingChanges
Event Data
The event handler receives an argument of type System.ComponentModel.CancelEventArgs containing data related to this event. The following CancelEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel |
Remarks
This event is raised from the SaveChanges method and allows a handler to cancel the operation before it begins. When a handler sets System.ComponentModel.CancelEventArgs.Cancel to True, the operation will be aborted and a subsequent SavedChanges event will not be raised.
See Also