1 //------------------------------------------------------------------------------
2 // <copyright file="OleDbInfoMessageEvent.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">Microsoft</owner>
6 // <owner current="true" primary="false">Microsoft</owner>
7 //------------------------------------------------------------------------------
9 namespace System.Data.OleDb {
12 using System.Diagnostics;
14 public sealed class OleDbInfoMessageEventArgs : System.EventArgs {
15 readonly private OleDbException exception;
17 internal OleDbInfoMessageEventArgs(OleDbException exception) {
18 Debug.Assert(null != exception, "OleDbInfoMessageEventArgs without OleDbException");
19 this.exception = exception;
22 public int ErrorCode {
24 return this.exception.ErrorCode;
28 public OleDbErrorCollection Errors {
30 return this.exception.Errors;
34 internal bool ShouldSerializeErrors() { // MDAC 65548
35 return this.exception.ShouldSerializeErrors();
39 public string Message {
41 return this.exception.Message;
45 public string Source {
47 return this.exception.Source;
51 override public string ToString() {