Searches for an existing data connection that matches the specified properties.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
Function FindConnection ( _
provider As Guid, _
connectionString As String, _
encryptedString As Boolean _
) As IVsDataExplorerConnection
'Usage
Dim instance As IVsDataExplorerConnectionManager
Dim provider As Guid
Dim connectionString As String
Dim encryptedString As Boolean
Dim returnValue As IVsDataExplorerConnection
returnValue = instance.FindConnection(provider, _
connectionString, encryptedString)
IVsDataExplorerConnection FindConnection(
Guid provider,
string connectionString,
bool encryptedString
)
IVsDataExplorerConnection^ FindConnection(
Guid provider,
String^ connectionString,
bool encryptedString
)
function FindConnection(
provider : Guid,
connectionString : String,
encryptedString : boolean
) : IVsDataExplorerConnection
Parameters
provider
Type: System.GuidThe GUID of the DDEX provider for the associated data connection.
connectionString
Type: System.StringThe connection string, in unencrypted or encrypted form, containing the connection properties.
encryptedString
Type: System.BooleanA Boolean value indicating whether the connectionString parameter is encrypted (true) or not (false).
Return Value
Type: Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection
An IVsDataExplorerConnection object representing an existing data connection that matches the specified properties, or nulla null reference (Nothing in Visual Basic) if none is found.
.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.
See Also
Reference
IVsDataExplorerConnectionManager Interface