OleDbInfoMessageEventArgs.ErrorCode Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the HRESULT following the ANSI SQL standard for the database.

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

public int ErrorCode { get; }

Property Value

Type: System.Int32

The HRESULT, which identifies the source of the error, if the error can be issued from more than one place.

This is a wrapper for the SQLState property of the first OleDbError in the Errors collection.

.NET Framework
Available since 1.1
Return to top