FillErrorEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / FillErrorEventArgs.cs / 1 / FillErrorEventArgs.cs

                            //------------------------------------------------------------------------------ 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
// [....]
//----------------------------------------------------------------------------- 
 
namespace System.Data { // MDAC 59437
 
    using System;
    using System.Data;

#if WINFSInternalOnly 
    internal
#else 
    public 
#endif
    class FillErrorEventArgs : System.EventArgs { 
        private bool continueFlag;
        private DataTable dataTable;
        private Exception errors;
        private object[] values; 

        public FillErrorEventArgs(DataTable dataTable, object[] values) { 
            this.dataTable = dataTable; 
            this.values = values;
            if (null == this.values) { 
                this.values = new object[0];
            }
        }
 
        public bool Continue {
            get { 
                return this.continueFlag; 
            }
            set { 
                this.continueFlag = value;
            }
        }
 
        public DataTable DataTable {
            get { 
                return this.dataTable; 
            }
        } 

        public Exception Errors {
            get {
                return this.errors; 
            }
            set { 
                this.errors = value; 
            }
        } 

        public object[] Values {
            get {
                object[] copy = new object[values.Length]; 
                for(int i = 0; i < values.Length; ++i) {
                    copy[i] = values[i]; // WebData 107464 
                } 
                return copy;
            } 
        }
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK