Share via


DomainDataSource.SubmittingChanges Event

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Occurs whenever a submit operation is started.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
Public Event SubmittingChanges As EventHandler(Of SubmittingChangesEventArgs)
'Usage
Dim instance As DomainDataSource
Dim handler As EventHandler(Of SubmittingChangesEventArgs)

AddHandler instance.SubmittingChanges, handler
public event EventHandler<SubmittingChangesEventArgs> SubmittingChanges
public:
 event EventHandler<SubmittingChangesEventArgs^>^ SubmittingChanges {
    void add (EventHandler<SubmittingChangesEventArgs^>^ value);
    void remove (EventHandler<SubmittingChangesEventArgs^>^ value);
}
member SubmittingChanges : IEvent<EventHandler<SubmittingChangesEventArgs>,
    SubmittingChangesEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Remarks

This event is raised from SubmitChanges and enables a handler to cancel the submit before it starts. When a handler sets Cancel to true, the submit will be aborted and a subsequent SubmittedChanges event will not be raised. This differs slightly from canceling a submit by way of CancelSubmit.

See Also

Reference

DomainDataSource Class

System.Windows.Controls Namespace