DomainDataSource.RejectChanges Method

[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 data changes that were performed by the underlying DomainContext.

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

Syntax

'Declaration
Public Sub RejectChanges
'Usage
Dim instance As DomainDataSource

instance.RejectChanges()
public void RejectChanges()
public:
void RejectChanges()
member RejectChanges : unit -> unit 
public function RejectChanges()

Exceptions

Exception Condition
InvalidOperationException

DomainContext is nulla null reference (Nothing in Visual Basic) or Data has a pending add or edit transaction.

Remarks

The RejectChanges method cannot be called when there is a pending transaction on the Data.

See Also

Reference

DomainDataSource Class

System.Windows.Controls Namespace

Other Resources

DomainDataSource