[runtime] Fix corlib out of date error with disabled COM
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / Hosting / WorkflowCommandExtensionItem.cs
1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //----------------------------------------------------------------
4
5 namespace System.Activities.Presentation.Hosting
6 {
7     //WorkflowCommandExtensionItem - this class allows user to update each workflow's designer command 
8     //(i.e. input gestures collection). user has to provide IWorkflowCommandExtensionCallback implementation
9     //to get notifications flowing in.
10     public sealed class WorkflowCommandExtensionItem : ContextItem
11     {
12         public WorkflowCommandExtensionItem()
13         {
14         }
15
16         public WorkflowCommandExtensionItem(IWorkflowCommandExtensionCallback callback)
17         {
18             if (null == callback)
19             {
20                 throw FxTrace.Exception.AsError(new ArgumentNullException("callback"));
21             }
22             this.CommandExtensionCallback = callback;
23         }
24
25         public override Type ItemType
26         {
27             get { return typeof(WorkflowCommandExtensionItem); }
28         }
29
30         internal IWorkflowCommandExtensionCallback CommandExtensionCallback
31         {
32             get;
33             private set;
34         }
35     }
36 }