ModelEditingScope.CanComplete Method
Determines whether the OnComplete method can be called, or whether the change should instead be reverted.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected MustOverride Function CanComplete As Boolean
'Usage
Dim returnValue As Boolean
returnValue = Me.CanComplete()
protected abstract bool CanComplete()
protected:
virtual bool CanComplete() abstract
protected abstract function CanComplete() : boolean
Return Value
Type: System.Boolean
true if completion can occur; false if the change should instead be reverted.
Remarks
An example of when a change should be reverted is when a file cannot be checked out of a source control system for modification.
.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