SubmittedChangesEventArgs.MarkErrorAsHandled 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.]
For a failed operation, marks the error as handled so the exception is not thrown.
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)
Syntax
'Declaration
Public Sub MarkErrorAsHandled
'Usage
Dim instance As SubmittedChangesEventArgs
instance.MarkErrorAsHandled()
public void MarkErrorAsHandled()
public:
void MarkErrorAsHandled()
member MarkErrorAsHandled : unit -> unit
public function MarkErrorAsHandled()
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | HasError is false. |
Remarks
When the HasError is true, this method marks the error as handled. If this method is not called for a failed operation, an exception will be thrown.