dotConnect for SugarCRM Documentation
Devart.Common Namespace / DbConnectionStringBuilder Class / EquivalentTo Method / EquivalentTo(DbConnectionStringBuilder,Boolean) Method
The DbConnectionStringBuilder to be compared with this DbConnectionStringBuilder object.

If this parameter is true, only the following DbConnectionStringBuilder properties are compared:

For Devart.Data.Oracle.OracleConnection.Direct connection:

For client connection:

If this parameter is false, all the DbConnectionStringBuilder properties are compared.

In This Topic
    EquivalentTo(DbConnectionStringBuilder,Boolean) Method
    In This Topic
    Compares the specified connection information in this DbConnectionStringBuilder object with the specified connection information in the supplied DbConnectionStringBuilder object.
    Syntax
    'Declaration
     
    Public Overloads Overridable Function EquivalentTo( _
       ByVal connectionStringBuilder As DbConnectionStringBuilder, _
       ByVal loginOnly As Boolean _
    ) As Boolean
    public virtual bool EquivalentTo( 
       DbConnectionStringBuilder connectionStringBuilder,
       bool loginOnly
    )

    Parameters

    connectionStringBuilder
    The DbConnectionStringBuilder to be compared with this DbConnectionStringBuilder object.
    loginOnly

    If this parameter is true, only the following DbConnectionStringBuilder properties are compared:

    For Devart.Data.Oracle.OracleConnection.Direct connection:

    • Devart.Data.Oracle.OracleConnectionStringBuilder.UserId
    • Devart.Data.Oracle.OracleConnectionStringBuilder.Server
    • Devart.Data.Oracle.OracleConnectionStringBuilder.Port
    • Devart.Data.Oracle.OracleConnectionStringBuilder.Sid

    For client connection:

    • Devart.Data.Oracle.OracleConnectionStringBuilder.UserId
    • Devart.Data.Oracle.OracleConnectionStringBuilder.Server
    • Devart.Data.Oracle.OracleConnectionStringBuilder.Home
    If this parameter is false, all the DbConnectionStringBuilder properties are compared.

    Return Value

    trueif the specified connection information in both of the DbConnectionStringBuilder objects is equal; otherwise, false.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also