FillErrorEventArgs.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //------------------------------------------------------------------------------
  2. // <copyright file="FillErrorEventArgs.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. //------------------------------------------------------------------------------
  8. namespace System.Data { // MDAC 59437
  9. using System;
  10. using System.Data;
  11. public class FillErrorEventArgs : System.EventArgs {
  12. private bool continueFlag;
  13. private DataTable dataTable;
  14. private Exception errors;
  15. private object[] values;
  16. public FillErrorEventArgs(DataTable dataTable, object[] values) {
  17. this.dataTable = dataTable;
  18. this.values = values;
  19. if (null == this.values) {
  20. this.values = new object[0];
  21. }
  22. }
  23. public bool Continue {
  24. get {
  25. return this.continueFlag;
  26. }
  27. set {
  28. this.continueFlag = value;
  29. }
  30. }
  31. public DataTable DataTable {
  32. get {
  33. return this.dataTable;
  34. }
  35. }
  36. public Exception Errors {
  37. get {
  38. return this.errors;
  39. }
  40. set {
  41. this.errors = value;
  42. }
  43. }
  44. public object[] Values {
  45. get {
  46. object[] copy = new object[values.Length];
  47. for(int i = 0; i < values.Length; ++i) {
  48. copy[i] = values[i]; // WebData 107464
  49. }
  50. return copy;
  51. }
  52. }
  53. }
  54. }