dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleConnectionStringBuilder Class / EquivalentTo Method / EquivalentTo(DbConnectionStringBuilder,Boolean) Method
A DbConnectionStringBuilder object to compare with.
If true,only the following properties are compared: UserId, Password, and Server.

In This Topic
EquivalentTo(DbConnectionStringBuilder,Boolean) Method
In This Topic
Returns a value indicating whether this OracleConnectionStringBuilder object has same parameters as given DbConnectionStringBuilder object.
Syntax
'Declaration
 
Public Overloads Overrides Function EquivalentTo( _
   ByVal connectionStringBuilder As DbConnectionStringBuilder, _
   ByVal loginOnly As Boolean _
) As Boolean
 

Parameters

connectionStringBuilder
A DbConnectionStringBuilder object to compare with.
loginOnly
If true,only the following properties are compared: UserId, Password, and Server.

Return Value

true, if the two objects have same parameters; otherwise, false.
Remarks
Use EquivalentTo to quickly compare two DbConnectionStringBuilder objects. If you need to check only the main connection properties, ensuring that you login to the same place with the same user, set loginOnly to true.
See Also