[runtime] Fix corlib out of date error with disabled COM
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / View / ViewCreatedEventArgs.cs
1 //----------------------------------------------------------------
2 // <copyright company="Microsoft Corporation">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //----------------------------------------------------------------
6
7 namespace System.Activities.Presentation.View
8 {
9     using System;
10
11     /// <summary>
12     /// Arguments for view changed event
13     /// </summary>
14     public class ViewCreatedEventArgs : EventArgs
15     {
16         private WorkflowViewElement view;
17
18         /// <summary>
19         /// Contruct a ViewChangedEventArgs object
20         /// </summary>
21         /// <param name="view">the workflow view element that is created</param>
22         public ViewCreatedEventArgs(WorkflowViewElement view)
23         {
24             if (view == null)
25             {
26                 throw FxTrace.Exception.ArgumentNull("view");
27             }
28
29             this.view = view;
30         }
31
32         /// <summary>
33         /// Gets the workflow view element that is created
34         /// </summary>
35         public WorkflowViewElement View
36         {
37             get { return this.view; }
38         }
39     }
40 }