Task.Complete Method
Completes changes that were made while this task has the focus.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub Complete
public void Complete()
public:
void Complete()
member Complete : unit -> unit
public function Complete()
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The task does not have the focus. |
Remarks
This method deactivates the focus for the task. If an exception is thrown during this method, the task will deactivate itself.
.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.Interaction Namespace