Share via


IVsDataConnection.EquivalentTo Method

Indicates whether the given data connection information, as represented by the provider GUID and a connection string, is equivalent to the current instance of the data connection.

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

Syntax

'Declaration
Function EquivalentTo ( _
    provider As Guid, _
    connectionString As String, _
    encryptedString As Boolean _
) As Boolean
'Usage
Dim instance As IVsDataConnection 
Dim provider As Guid 
Dim connectionString As String 
Dim encryptedString As Boolean 
Dim returnValue As Boolean 

returnValue = instance.EquivalentTo(provider, _
    connectionString, encryptedString)
bool EquivalentTo(
    Guid provider,
    string connectionString,
    bool encryptedString
)
bool EquivalentTo(
    Guid provider, 
    String^ connectionString, 
    bool encryptedString
)
function EquivalentTo(
    provider : Guid, 
    connectionString : String, 
    encryptedString : boolean
) : boolean

Parameters

  • provider
    Type: System.Guid

    The GUID of the data provider.

  • connectionString
    Type: System.String

    The connection string containing connection properties and values.

  • encryptedString
    Type: System.Boolean

    A Boolean value indicating whether the connection string is encrypted.

Return Value

Type: System.Boolean
true if the given data connection information is equivalent to the current instance; otherwise, false.

.NET Framework Security

See Also

Reference

IVsDataConnection Interface

IVsDataConnection Members

Microsoft.VisualStudio.Data.Services Namespace