IVsDataExplorerConnectionManager.FindConnection 方法

与指定属性的现有数据连接的搜索。

命名空间:  Microsoft.VisualStudio.Data.Services
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function FindConnection ( _
    provider As Guid, _
    connectionString As String, _
    encryptedString As Boolean _
) As IVsDataExplorerConnection
IVsDataExplorerConnection FindConnection(
    Guid provider,
    string connectionString,
    bool encryptedString
)
IVsDataExplorerConnection^ FindConnection(
    Guid provider, 
    String^ connectionString, 
    bool encryptedString
)
abstract FindConnection : 
        provider:Guid * 
        connectionString:string * 
        encryptedString:bool -> IVsDataExplorerConnection
function FindConnection(
    provider : Guid, 
    connectionString : String, 
    encryptedString : boolean
) : IVsDataExplorerConnection

参数

  • provider
    类型:Guid

    DDEX 提供程序 GUID 的关联数据的连接。

  • connectionString
    类型:String

    连接字符串,以不加密或加密形式,包含连接属性。

  • encryptedString
    类型:Boolean

    指示是否 Boolean 值 ( connectionString 参数) 加密true(false)。

返回值

类型:Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection
IVsDataExplorerConnection 对象表示与指定属性的现有数据连接、nullnull 引用(在 Visual Basic 中为 Nothing),如果没有找到。

.NET Framework 安全性

请参阅

参考

IVsDataExplorerConnectionManager 接口

Microsoft.VisualStudio.Data.Services 命名空间