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

See Also

Reference

Task Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

WPF Designer Extensibility