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
'宣言
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.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
- 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.