Share via


IVsDataConnectionEquivalencyComparer.AreEquivalent Method

Compares the specified connection strings to determine whether they are equivalent and hence provide the same design-time experience.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Function AreEquivalent ( _
    connectionString1 As String, _
    connectionString2 As String _
) As Boolean
bool AreEquivalent(
    string connectionString1,
    string connectionString2
)
bool AreEquivalent(
    String^ connectionString1, 
    String^ connectionString2
)
abstract AreEquivalent : 
        connectionString1:string * 
        connectionString2:string -> bool
function AreEquivalent(
    connectionString1 : String, 
    connectionString2 : String
) : boolean

Parameters

  • connectionString1
    Type: System.String

    The first connection string to compare.

  • connectionString2
    Type: System.String

    The second connection string to compare.

Return Value

Type: System.Boolean
true if the connection strings are equivalent; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

The connectionString1 or the connectionString2 parameter is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

IVsDataConnectionEquivalencyComparer Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace