dotConnect for MongoDB Documentation
Devart.Common Namespace / DbConnectionStringBuilder Class / EquivalentTo Method / EquivalentTo(DbConnectionStringBuilder,Boolean) Method
The DbConnectionStringBuilder to be compared with this DbConnectionStringBuilder object.
If true, only Password, User Id, Host, Port, Database, Url, Connection Format, Additional Servers, and Auth Database are compared.

On this page
    EquivalentTo(DbConnectionStringBuilder,Boolean) Method
    On this page
    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 true, only Password, User Id, Host, Port, Database, Url, Connection Format, Additional Servers, and Auth Database are compared.

    Return Value

    true if the specified connection information in both of the DbConnectionStringBuilder objects is equal; otherwise, false.
    See Also