Share via


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
'Usage
Dim instance As Task

instance.Complete()
public void Complete()
public:
void Complete()
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

See Also

Reference

Task Class

Task Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

WPF Designer Extensibility