Share via


AdornerProperties.GetTask Method

Gets the task for the specified adorner.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Shared Function GetTask ( _
    adorner As DependencyObject _
) As Task
public static Task GetTask(
    DependencyObject adorner
)
public:
static Task^ GetTask(
    DependencyObject^ adorner
)
static member GetTask : 
        adorner:DependencyObject -> Task 
public static function GetTask(
    adorner : DependencyObject
) : Task

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.Task
The Task associated with adorner.

Exceptions

Exception Condition
ArgumentNullException

adorner is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

AdornerProperties Class

Microsoft.Windows.Design.Interaction Namespace

Task

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture