OleDbInfoMessageEventArgs Class

Provides data for the InfoMessage event. This class cannot be inherited.


Namespace:  System.Data.OleDb
Assembly:  System.Data (in System.Data.dll)

public sealed class OleDbInfoMessageEventArgs : EventArgs

The OleDbInfoMessageEventArgs type exposes the following members.

Public propertyErrorCodeGets the HRESULT following the ANSI SQL standard for the database.
Public propertyErrorsGets the collection of warnings sent from the data source.
Public propertyMessageGets the full text of the error sent from the data source.
Public propertySourceGets the name of the object that generated the error.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringRetrieves a string representation of the InfoMessage event. (Overrides Object.ToString().)

The InfoMessage event contains an OleDbErrorCollection collection with warnings sent from the data source.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft