Share via


DataConnectionEquivalencyComparer.AreEquivalent Method

Definition

Overloads

AreEquivalent(IVsDataConnectionProperties, IVsDataConnectionProperties)

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

AreEquivalent(String, String)

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

AreEquivalent(IVsDataConnectionProperties, IVsDataConnectionProperties)

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

protected:
 virtual bool AreEquivalent(Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataConnectionProperties ^ connectionProperties1, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataConnectionProperties ^ connectionProperties2);
protected virtual bool AreEquivalent (Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionProperties connectionProperties1, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionProperties connectionProperties2);
abstract member AreEquivalent : Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionProperties * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionProperties -> bool
override this.AreEquivalent : Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionProperties * Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionProperties -> bool
Protected Overridable Function AreEquivalent (connectionProperties1 As IVsDataConnectionProperties, connectionProperties2 As IVsDataConnectionProperties) As Boolean

Parameters

connectionProperties1
IVsDataConnectionProperties

The first IVsDataConnectionProperties object containing the connection properties to compare.

connectionProperties2
IVsDataConnectionProperties

The second IVsDataConnectionProperties object containing the connection properties to compare.

Returns

true if both connection objects are equivalent; otherwise, false.

Applies to

AreEquivalent(String, String)

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

public:
 virtual bool AreEquivalent(System::String ^ connectionString1, System::String ^ connectionString2);
public bool AreEquivalent (string connectionString1, string connectionString2);
abstract member AreEquivalent : string * string -> bool
override this.AreEquivalent : string * string -> bool
Public Function AreEquivalent (connectionString1 As String, connectionString2 As String) As Boolean

Parameters

connectionString1
String

The first connection string to compare.

connectionString2
String

The second connection string to compare.

Returns

true if both connection strings are equivalent; otherwise, false.

Implements

Exceptions

The connectionString1 or the connectionString2 parameter is null.

Applies to