OleDbInfoMessageEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Data / System / Data / OleDb / OleDbInfoMessageEvent.cs / 1 / OleDbInfoMessageEvent.cs

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

#if WINFSInternalOnly 
    internal
#else 
    public 
#endif
    sealed class OleDbInfoMessageEventArgs : System.EventArgs { 
        readonly private OleDbException exception;

        internal OleDbInfoMessageEventArgs(OleDbException exception) {
            Debug.Assert(null != exception, "OleDbInfoMessageEventArgs without OleDbException"); 
            this.exception = exception;
        } 
 
        public int ErrorCode {
            get { 
                return this.exception.ErrorCode;
            }
        }
 
        public OleDbErrorCollection Errors {
            get { 
                return this.exception.Errors; 
            }
        } 

        internal bool ShouldSerializeErrors() { // MDAC 65548
            return this.exception.ShouldSerializeErrors();
        } 

 
        public string Message { 
            get {
                return this.exception.Message; 
            }
        }

        public string Source { 
            get {
                return this.exception.Source; 
            } 
        }
 
        override public string ToString() {
            return Message;
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
// [....]
//----------------------------------------------------------------------------- 
 
namespace System.Data.OleDb {
 
    using System;
    using System.Diagnostics;

#if WINFSInternalOnly 
    internal
#else 
    public 
#endif
    sealed class OleDbInfoMessageEventArgs : System.EventArgs { 
        readonly private OleDbException exception;

        internal OleDbInfoMessageEventArgs(OleDbException exception) {
            Debug.Assert(null != exception, "OleDbInfoMessageEventArgs without OleDbException"); 
            this.exception = exception;
        } 
 
        public int ErrorCode {
            get { 
                return this.exception.ErrorCode;
            }
        }
 
        public OleDbErrorCollection Errors {
            get { 
                return this.exception.Errors; 
            }
        } 

        internal bool ShouldSerializeErrors() { // MDAC 65548
            return this.exception.ShouldSerializeErrors();
        } 

 
        public string Message { 
            get {
                return this.exception.Message; 
            }
        }

        public string Source { 
            get {
                return this.exception.Source; 
            } 
        }
 
        override public string ToString() {
            return Message;
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

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