Show / Hide Table of Contents

    Class Extensions

    General extensions for Microsoft Access.

    Inheritance
    System.Object
    Extensions
    Namespace: Kros.Data.MsAccess
    Assembly: Kros.Utils.MsAccess.dll
    Syntax
    public static class Extensions

    Methods

    MsAccessErrorCode(OleDbException)

    Returns Microsoft Access error code.

    Declaration
    public static MsAccessErrorCode MsAccessErrorCode(this OleDbException ex)
    Parameters
    Type Name Description
    System.Data.OleDb.OleDbException ex

    Exception, whose error code is checked.

    Returns
    Type Description
    MsAccessErrorCode

    Returns error code as an enumeration MsAccessErrorCode. If the error code is unknown, or not defined, value MsAccessErrorCode is returned.

    Remarks

    Method checks the value of System.Data.OleDb.OleDbError.SQLState of the first error in the list System.Data.OleDb.OleDbException.Errors.

    MsAccessErrorCode(OleDbException, out String)

    Returns Microsoft Access error code.

    Declaration
    public static MsAccessErrorCode MsAccessErrorCode(this OleDbException ex, out string sqlState)
    Parameters
    Type Name Description
    System.Data.OleDb.OleDbException ex

    Exception, whose error code is checked.

    System.String sqlState

    Real value of System.Data.OleDb.OleDbError.SQLState.

    Returns
    Type Description
    MsAccessErrorCode

    Returns error code as an enumeration MsAccessErrorCode. If the error code is unknown, or not defined, value MsAccessErrorCode is returned.

    Remarks

    Method checks the value of System.Data.OleDb.OleDbError.SQLState of the first error in the list System.Data.OleDb.OleDbException.Errors.

    Back to top KROS a.s.