Share via


AdornerProperties.SetTask Method

Sets 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 Sub SetTask ( _
    adorner As DependencyObject, _
    value As Task _
)
public static void SetTask(
    DependencyObject adorner,
    Task value
)
public:
static void SetTask(
    DependencyObject^ adorner, 
    Task^ value
)
static member SetTask : 
        adorner:DependencyObject * 
        value:Task -> unit 
public static function SetTask(
    adorner : DependencyObject, 
    value : Task
)

Parameters

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