ModelEditingScope.Revert Method
Abandons the changes that were made during the editing scope.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub Revert
'Usage
Dim instance As ModelEditingScope
instance.Revert()
public void Revert()
public:
void Revert()
public function Revert()
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | ModelEditingScope has already been committed. |
Remarks
If the group has already been committed or aborted, this will throw an InvalidOperationException. Calling the Revert method calls the protected the OnRevert method with false for the finalizing parameter.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace