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
bool EquivalentTo(
Guid provider,
string connectionString,
bool encryptedString
)
bool EquivalentTo(
Guid provider,
String^ connectionString,
bool encryptedString
)
abstract EquivalentTo :
provider:Guid *
connectionString:string *
encryptedString:bool -> bool
function EquivalentTo(
provider : Guid,
connectionString : String,
encryptedString : boolean
) : boolean
Parameters
provider
Type: System.GuidThe GUID of the data provider.
connectionString
Type: System.StringThe connection string containing connection properties and values.
encryptedString
Type: System.BooleanA 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.