Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- adorner
Type: System.Windows.DependencyObject
The adorner element to set the task for.
- value
Type: Microsoft.Windows.Design.Interaction.Task
The Task to associate with adorner.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | adorner is nulla null reference (Nothing in Visual Basic). |
.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