DomainDataSource.CancelSubmit Method

WCF RIA Services

[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.]

Cancels the current submit operation performed by this DomainDataSource, if any.

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

public void CancelSubmit()

This method will cancel a SubmitChanges operation already in progress. Operations canceled using CancelSubmit will raise a SubmittedChanges event when they complete with the Cancel flag set to true.

If IsSubmittingChanges is false, this method will not do anything. This method of cancellation differs slightly from canceling a submit by way of the SubmittingChanges event. Upon completion of the operation, check the IsCanceled() dependency property to determine whether the operation was successfully canceled. Note that cancellation of the operation does not guarantee state changes were prevented from happening on the server.

Show: