Partager via


DataConnectionEquivalencyComparer.AreEquivalent Method (String, String)

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

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Function AreEquivalent ( _
    connectionString1 As String, _
    connectionString2 As String _
) As Boolean
public bool AreEquivalent(
    string connectionString1,
    string connectionString2
)
public:
virtual bool AreEquivalent(
    String^ connectionString1, 
    String^ connectionString2
) sealed
abstract AreEquivalent : 
        connectionString1:string * 
        connectionString2:string -> bool  
override AreEquivalent : 
        connectionString1:string * 
        connectionString2:string -> bool
public final 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 both connection strings are equivalent; otherwise, false.

Implements

IVsDataConnectionEquivalencyComparer.AreEquivalent(String, String)

Exceptions

Exception Condition
ArgumentNullException

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

.NET Framework Security

See Also

Reference

DataConnectionEquivalencyComparer Class

AreEquivalent Overload

Microsoft.VisualStudio.Data.Framework Namespace