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
    类型:System.Guid
    DDEX提供程序的GUID关联的数据连接的。
  • connectionString
    类型:System.String
    连接字符串,并且未加密或加密形式,包含连接属性。
  • encryptedString
    类型:System.Boolean
    指示是否的 Boolean 值 connectionString 参数加密(true) (false)。

返回值

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

.NET Framework 安全性

请参见

参考

IVsDataExplorerConnectionManager 接口

Microsoft.VisualStudio.Data.Services 命名空间