DataRowChangeEvent.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //------------------------------------------------------------------------------
  2. // <copyright file="DataRowChangeEvent.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">[....]</owner>
  6. // <owner current="true" primary="false">[....]</owner>
  7. // <owner current="false" primary="false">[....]</owner>
  8. //------------------------------------------------------------------------------
  9. namespace System.Data {
  10. using System;
  11. using System.Diagnostics;
  12. public class DataRowChangeEventArgs : EventArgs {
  13. private DataRow row;
  14. private DataRowAction action;
  15. /// <devdoc>
  16. /// <para>
  17. /// Initializes a new instance of the <see cref='System.Data.DataRowChangeEventArgs'/> class.
  18. /// </para>
  19. /// </devdoc>
  20. public DataRowChangeEventArgs(DataRow row, DataRowAction action) {
  21. this.row = row;
  22. this.action = action;
  23. }
  24. /// <devdoc>
  25. /// <para>
  26. /// Gets the row upon which an action has occurred.
  27. /// </para>
  28. /// </devdoc>
  29. public DataRow Row {
  30. get {
  31. return row;
  32. }
  33. }
  34. /// <devdoc>
  35. /// <para>
  36. /// Gets the action that has occurred on a <see cref='System.Data.DataRow'/>.
  37. /// </para>
  38. /// </devdoc>
  39. public DataRowAction Action {
  40. get {
  41. return action;
  42. }
  43. }
  44. }
  45. }